package
0.0.0-20241125034441-9652354a7945
Repository: https://github.com/puper/leo.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
New returns a new Gormigrate.
No description provided by the author
No description provided by the author

# Variables

DefaultOptions can be used if you don't want to think about options.
ErrMigrationIDDoesNotExist is returned when migrating or rolling back to a migration ID that does not exist in the list of migrations.
ErrMissingID is returned when the ID od migration is equal to "".
ErrNoMigrationDefined is returned when no migration is defined.
ErrNoRunMigration is returned when any run migration was found while running RollbackLast.
ErrRollbackImpossible is returned when trying to rollback a migration that has no rollback function.
ErrUnknownPastMigration is returned if a migration exists in the DB that doesn't exist in the code.

# Structs

No description provided by the author
DuplicatedIDError is returned when more than one migration have the same ID.
Gormigrate represents a collection of all migrations of a database schema.
Migration represents a database migration (a modification to be made on the database).
ReservedIDError is returned when a migration is using a reserved ID.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

InitSchemaFunc is the func signature for initializing the schema.
MigrateFunc is the func signature for migrating.
Options define options for all migrations.
RollbackFunc is the func signature for rollbacking.