Documentation
¶
Overview ¶
Package migrate provides database migration helpers for containerized databases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMigration ¶
CreateMigration creates a new migration file pair (up and down).
func ForceVersion ¶
ForceVersion sets the schema version without running migrations.
Types ¶
type Option ¶
type Option func(*Runner)
Option configures the Runner.
func WithTableName ¶
WithTableName sets the migration tracking table name.
func WithTimeout ¶
WithTimeout sets the timeout for each migration step.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner handles database migrations for containerized databases.
Click to show internal directories.
Click to hide internal directories.