diff

package
v1.182.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 31 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectShadowDatabase added in v1.149.1

func ConnectShadowDatabase(ctx context.Context, timeout time.Duration, options ...func(*pgx.ConnConfig)) (conn *pgx.Conn, err error)

func CreateShadowDatabase added in v1.27.2

func CreateShadowDatabase(ctx context.Context, port uint16) (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, differ func(context.Context, string, string, []string) (string, error), options ...func(*pgx.ConnConfig)) (string, error)

func DiffPgSchema added in v1.145.0

func DiffPgSchema(ctx context.Context, source, target string, schema []string) (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 DiffSchemaPgAdmin added in v1.145.0

func DiffSchemaPgAdmin(ctx context.Context, source, target string, schema []string, p utils.Program) (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 Run

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

func RunPgAdmin added in v1.145.0

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

func SaveDiff added in v1.0.4

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

Types

type DiffFunc added in v1.145.0

type DiffFunc func(context.Context, string, string, []string) (string, error)

Jump to

Keyboard shortcuts

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