package
0.0.0-20250312033235-bd4f568112dc
Repository: https://github.com/sourcegraph/src-cli.git
Documentation: pkg.go.dev
# Functions
BuildCommands generates commands that output Postgres dumps and sends them to predefined files for each target database.
Builder generates the CommandBuilder and targetKey for a given builder and PGCommand.
DumpCommand generates a pg_dump command that can be used for on-prem-to-Cloud migrations.
Outputs generates a set of mappings between a pgdump.Target and the desired output path.
PartialCopyWithoutExtensions will perform a partial copy of a SQL database dump from src to dst while commenting out EXTENSIONs-related statements.
RestoreCommand generates a psql command that can be used for migrations.