hongkongkiwi/PostgreSQL Database Fork

Fork PostgreSQL databases in CI/CD environments

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
commandCommand to run (fork, validate, test-connection, cleanup, etc.)yesfork
config-filePath to configuration fileno
source-hostSource database hostno
source-portSource database portno
source-userSource database usernameno
source-passwordSource database passwordno
source-databaseSource database nameno
source-sslmodeSource database SSL modeno
dest-hostDestination database hostno
dest-portDestination database portno
dest-userDestination database usernameno
dest-passwordDestination database passwordno
dest-sslmodeDestination database SSL modeno
target-databaseTarget database name (supports templates like myapp_pr_{{.PR_NUMBER}})no
drop-if-existsDrop target database if it existsnofalse
max-connectionsMaximum number of connectionsno4
chunk-sizeChunk size for data transferno1000
timeoutOperation timeout (e.g., 30m, 1h)no30m
output-formatOutput format (text, json)notext
quietQuiet modenofalse
dry-runDry run modenofalse
schema-onlyTransfer schema only (no data)nofalse
data-onlyTransfer data only (no schema)nofalse
template-varsTemplate variables in JSON format (e.g., {"PR_NUMBER":"123","BRANCH":"main"})no
namedescription
resultCommand execution result
target-databaseThe actual target database name (after template processing)
connection-stringConnection string for the target database