Documentation ¶
Index ¶
- type ErrDependencyMissing
- type ErrDuplicateEntry
- type ErrFailedMigration
- type ExecQuery
- type Migrator
- func (mig *Migrator) EnqueueMigrations() error
- func (mig *Migrator) Execute(q ExecQuery) error
- func (mig *Migrator) FetchApplied(q ExecQuery) error
- func (mig Migrator) Initialize(q ExecQuery) error
- func (mig *Migrator) InstallProgram(fid fileIdentifier, program Program)
- func (mig *Migrator) Next() bool
- type Program
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrDependencyMissing ¶
type ErrDependencyMissing string
func (ErrDependencyMissing) Error ¶
func (e ErrDependencyMissing) Error() string
type ErrDuplicateEntry ¶
type ErrDuplicateEntry string
func (ErrDuplicateEntry) Error ¶
func (e ErrDuplicateEntry) Error() string
type ErrFailedMigration ¶
type ErrFailedMigration struct {
// contains filtered or unexported fields
}
func (ErrFailedMigration) Error ¶
func (e ErrFailedMigration) Error() string
func (ErrFailedMigration) Unwrap ¶
func (e ErrFailedMigration) Unwrap() error
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator applies schema upgrades to the database
func (*Migrator) EnqueueMigrations ¶
func (*Migrator) FetchApplied ¶
func (Migrator) Initialize ¶
Initialize the migration table in the database
func (*Migrator) InstallProgram ¶
Click to show internal directories.
Click to hide internal directories.