# terraform-generic-sql-seeder
**Repository Path**: walrus-catalog-test/terraform-generic-sql-seeder
## Basic Information
- **Project Name**: terraform-generic-sql-seeder
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-03-15
- **Last Updated**: 2024-03-15
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Generic SQL Seeder
Terraform module which seeds Relational Database for Development or Testing, like MySQL, PostgreSQL, MariaDB, etc., powered by [Seal/Byteset](https://registry.terraform.io/providers/seal-io/byteset/latest).
## Usage
```hcl
module "sql-seeder" {
source = "..."
src = "https://raw.githubusercontent.com/seal-io/terraform-provider-byteset/main/byteset/testdata/mysql-lg.sql"
dest = "mysql://username:password@tcp(ip:port)/"
}
```
## Examples
- [MySQL](./examples/mysql)
- [PostgreSQL](./examples/postgresql)
## Contributing
Please read our [contributing guide](./docs/CONTRIBUTING.md) if you're interested in contributing to Walrus template.
## Requirements
| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.0 |
| [byteset](#requirement\_byteset) | >= 0.2.3 |
## Providers
| Name | Version |
|------|---------|
| [byteset](#provider\_byteset) | >= 0.2.3 |
## Modules
No modules.
## Resources
| Name | Type |
|------|------|
| [byteset_pipeline.seeding](https://registry.terraform.io/providers/seal-io/byteset/latest/docs/resources/pipeline) | resource |
## Inputs
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [context](#input\_context) | Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field.
Examples:
context:| `map(any)` | `{}` | no | | [dest](#input\_dest) | Specify the seeding destiantion address, which is a database connection string.
project:
name: string
id: string
environment:
name: string
id: string
resource:
name: string
id: string
mysql://[username:[password]@]tcp([address][:port])[/dbname][?param1=value1&...]| `string` | n/a | yes | | [execution\_batch\_capacity](#input\_execution\_batch\_capacity) | Specify the batch capacity value during executing. | `number` | `500` | no | | [execution\_maximum\_connection](#input\_execution\_maximum\_connection) | Specify the maximum connection value during executing. | `number` | `5` | no | | [salt](#input\_salt) | Specify the salt for triggering a new seeding. | `string` | `null` | no | | [src](#input\_src) | Specify the seeding source address started with 'file://' or 'http(s)://' schema.
maria|mariadb://[username:[password]@]tcp([address][:port])[/dbname][?param1=value1&...]
postgres|postgresql://[username:[password]@][address][:port][/dbname][?param1=value1&...]
oracle://[username:[password]@][address][:port][/service][?param1=value1&...]
mssql|sqlserver://[username:[password]@][address][:port][/instance][?database=dbname¶m1=value1&...]
https://raw.githubusercontent.com/seal-io/terraform-provider-byteset/main/byteset/testdata/mysql.sql| `string` | n/a | yes | ## Outputs | Name | Description | |------|-------------| | [context](#output\_context) | The input context, a map, which is used for orchestration. | | [id](#output\_id) | The execution ID of the byteset pipeline. | | [refer](#output\_refer) | The refer, a map, which is used for dependencies or collaborations. | | [timecost](#output\_timecost) | The execution timecost of the byteset pipeline. | ## License Copyright (c) 2023 [Seal, Inc.](https://seal.io) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at [LICENSE](./LICENSE) file for details. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.