hongkongkiwi/PostgreSQL Database Fork
Fork PostgreSQL databases in CI/CD environments
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | Command to run (fork, validate, test-connection, cleanup, etc.) | yes | fork |
| config-file | Path to configuration file | no | — |
| source-host | Source database host | no | — |
| source-port | Source database port | no | — |
| source-user | Source database username | no | — |
| source-password | Source database password | no | — |
| source-database | Source database name | no | — |
| source-sslmode | Source database SSL mode | no | — |
| dest-host | Destination database host | no | — |
| dest-port | Destination database port | no | — |
| dest-user | Destination database username | no | — |
| dest-password | Destination database password | no | — |
| dest-sslmode | Destination database SSL mode | no | — |
| target-database | Target database name (supports templates like myapp_pr_{{.PR_NUMBER}}) | no | — |
| drop-if-exists | Drop target database if it exists | no | false |
| max-connections | Maximum number of connections | no | 4 |
| chunk-size | Chunk size for data transfer | no | 1000 |
| timeout | Operation timeout (e.g., 30m, 1h) | no | 30m |
| output-format | Output format (text, json) | no | text |
| quiet | Quiet mode | no | false |
| dry-run | Dry run mode | no | false |
| schema-only | Transfer schema only (no data) | no | false |
| data-only | Transfer data only (no schema) | no | false |
| template-vars | Template variables in JSON format (e.g., {"PR_NUMBER":"123","BRANCH":"main"}) | no | — |
Outputs
| name | description |
|---|---|
| result | Command execution result |
| target-database | The actual target database name (after template processing) |
| connection-string | Connection string for the target database |