Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSnapshotCmd ¶
func PGDump ¶ added in v0.9.0
func PGDump(ctx context.Context, dbName, dbUser, dbPass, dbHost, dbPort string, snapshotDir string) (height int64, logs []string, genesisConfig *chain.GenesisConfig, err error)
PGDump uses pg_dump to create a snapshot of the database. It returns messages to log and an error if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.