Documentation ¶
Index ¶
- func ConnectShadowDatabase(ctx context.Context, timeout time.Duration, options ...func(*pgx.ConnConfig)) (conn *pgx.Conn, err error)
- func CreateShadowDatabase(ctx context.Context) (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 LoadUserSchemas(ctx context.Context, conn *pgx.Conn) ([]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 ¶ added in v1.149.1
func CreateShadowDatabase ¶ added in v1.27.2
func DiffDatabase ¶ added in v1.28.0
func DiffPgSchema ¶ added in v1.145.0
func DiffSchemaMigra ¶ added in v1.27.4
Diffs local database schema against shadow, dumps output to stdout.
func DiffSchemaPgAdmin ¶ added in v1.145.0
func LoadUserSchemas ¶ added in v1.28.0
func MigrateShadowDatabase ¶ added in v1.27.2
func RunPgAdmin ¶ added in v1.145.0
Types ¶
Click to show internal directories.
Click to hide internal directories.