diff

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMigrations added in v1.0.9

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

Applies local migration scripts to a database.

func BatchExecDDL added in v1.7.3

func BatchExecDDL(ctx context.Context, conn *pgx.Conn, sql io.Reader) error

func MigrateDatabase added in v1.7.3

func MigrateDatabase(ctx context.Context, conn *pgx.Conn, fsys afero.Fs) error

func Run

func Run(file string, fsys afero.Fs) error

TODO: Handle cleanup on SIGINT/SIGTERM.

func RunMigra

func RunMigra(ctx context.Context, schema []string, file string, password string, fsys afero.Fs, options ...func(*pgx.ConnConfig)) 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