diff

package
v1.116.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateShadowDatabase added in v1.27.2

func CreateShadowDatabase(ctx context.Context) (string, error)

func DiffDatabase added in v1.28.0

func DiffDatabase(ctx context.Context, schema []string, config pgconn.Config, w io.Writer, fsys afero.Fs, options ...func(*pgx.ConnConfig)) (string, error)

func DiffSchema added in v1.27.2

func DiffSchema(ctx context.Context, source, target string, schema []string, p utils.Program) (string, error)

func DiffSchemaMigra added in v1.27.4

func DiffSchemaMigra(ctx context.Context, source, target string, schema []string) (string, error)

Diffs local database schema against shadow, dumps output to stdout.

func LoadUserSchemas added in v1.28.0

func LoadUserSchemas(ctx context.Context, conn *pgx.Conn, exclude ...string) ([]string, error)

func MigrateShadowDatabase added in v1.27.2

func MigrateShadowDatabase(ctx context.Context, container string, fsys afero.Fs, options ...func(*pgx.ConnConfig)) error

func MigrateShadowDatabaseVersions added in v1.70.0

func MigrateShadowDatabaseVersions(ctx context.Context, container string, migrations []string, fsys afero.Fs, options ...func(*pgx.ConnConfig)) error

func Run

func Run(ctx context.Context, schema []string, file string, config pgconn.Config, fsys afero.Fs) error

func RunMigra

func RunMigra(ctx context.Context, schema []string, file string, config pgconn.Config, fsys afero.Fs, options ...func(*pgx.ConnConfig)) (err error)

func SaveDiff added in v1.0.4

func SaveDiff(out, file string, fsys afero.Fs) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL