Documentation
¶
Overview ¶
Package migrator provides utilities for database migration management.
Index ¶
Constants ¶
View Source
const ( DefaultOption option = iota MigratorOption )
Define values for [option].
Variables ¶
View Source
var ( ErrExecSQL = errors.New("locking: failed to execute SQL") ErrAcquireLock = errors.New("locking: failed to acquire advisory lock") ErrReleaseLock = errors.New("locking: failed to release advisory lock") )
Errors returned when acquiring or releasing advisory locks.
Functions ¶
func GenerateLockKey ¶
GenerateLockKey generates a lock key from a string.
func OptionFromDB ¶
OptionFromDB retrieves the migration option from the database. If the option is not found or is not of the correct type, it returns driver.ErrInvalidMigration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.