Documentation ¶
Index ¶
- func ApplyMigrations(ctx context.Context, url string, fsys afero.Fs, ...) error
- func BatchExecDDL(ctx context.Context, conn *pgx.Conn, sql io.Reader) error
- func MigrateDatabase(ctx context.Context, conn *pgx.Conn, fsys afero.Fs) error
- func Run(file string, fsys afero.Fs) error
- func RunMigra(ctx context.Context, schema []string, file string, password string, ...) error
- func SaveDiff(out, file string, fsys afero.Fs) error
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 MigrateDatabase ¶ added in v1.7.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.