Categorygithub.com/oarkflow/migration
modulepackage
0.0.5
Repository: https://github.com/oarkflow/migration.git
Documentation: pkg.go.dev

# Functions

Exec a set of migrations Returns the number of applied migrations.
ExecMax a set of migrations Will apply at most `max` migrations.
No description provided by the author
No description provided by the author
Parse Split the given sql script into individual statements.
ParseMigration parsing.
PlanMigration Plan a migration.
No description provided by the author
No description provided by the author
SetIgnoreUnknown sets the flag that skips database check to see if there is a migration in the database that is not in migration source.
SetSchema sets the name of a schema that the migration table be referenced.
SetTable the name of the table used to store migration info.
SkipMax a set of migrations Will skip at most `max` migrations.
No description provided by the author
ToApply Filter a slice of migrations into ones that should be applied.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author

# Variables

LineSeparator can be used to split migrations by an exact line match.
No description provided by the author

# Structs

Migrations from a bindata asset set.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FileMigrationSource A set of migrations loaded from a directory.
No description provided by the author
MemoryMigrationSource A hardcoded set of migrations, in-memory.
No description provided by the author
No description provided by the author
No description provided by the author
MigrationSet provides database parameters for a migration execution.
No description provided by the author
No description provided by the author
No description provided by the author
PlanError happens where no migration plan could be created between the sets of already applied migrations and the currently found.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TxError is returned when any error is encountered during a database transaction.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author