Documentation
¶
Index ¶
- func ConnectShadowDatabase(ctx context.Context, timeout time.Duration, options ...func(*pgx.ConnConfig)) (conn *pgx.Conn, err error)
- func CreateShadowDatabase(ctx context.Context, port uint16) (string, error)
- func DiffDatabase(ctx context.Context, schema []string, config pgconn.Config, w io.Writer, ...) (string, error)
- func DiffPgSchema(ctx context.Context, source, target string, schema []string) (string, error)
- func DiffSchemaMigra(ctx context.Context, source, target string, schema []string) (string, error)
- func DiffSchemaPgAdmin(ctx context.Context, source, target string, schema []string, p utils.Program) (string, error)
- func MigrateShadowDatabase(ctx context.Context, container string, fsys afero.Fs, ...) error
- func Run(ctx context.Context, schema []string, file string, config pgconn.Config, ...) (err error)
- func RunPgAdmin(ctx context.Context, schema []string, file string, config pgconn.Config, ...) error
- func SaveDiff(out, file string, fsys afero.Fs) error
- type DiffFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectShadowDatabase ¶
func CreateShadowDatabase ¶
func DiffDatabase ¶
func DiffPgSchema ¶
func DiffSchemaMigra ¶
Diffs local database schema against shadow, dumps output to stdout.
func DiffSchemaPgAdmin ¶
func MigrateShadowDatabase ¶
func RunPgAdmin ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.