Documentation ¶
Index ¶
- type Migration
- type Migrator
- func (m *Migrator) AddMigrationRaw(migration string)
- func (m *Migrator) CreateMigrationsTable() bool
- func (m *Migrator) GetExtraMigrations(names []string) []Migration
- func (m *Migrator) GetLastBatch() int
- func (m *Migrator) GetLastMigration() (bool, *Migration)
- func (m *Migrator) GetLastMigrations() []*Migration
- func (m *Migrator) MigrationExist(name string) bool
- func (m *Migrator) RemoveLastBatch()
- func (m *Migrator) RemoveMigrationRaw(migration string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func (*Migrator) AddMigrationRaw ¶
func (*Migrator) CreateMigrationsTable ¶
func (*Migrator) GetExtraMigrations ¶
func (*Migrator) GetLastBatch ¶
func (*Migrator) GetLastMigration ¶
func (*Migrator) GetLastMigrations ¶
func (*Migrator) MigrationExist ¶
func (*Migrator) RemoveLastBatch ¶
func (m *Migrator) RemoveLastBatch()
func (*Migrator) RemoveMigrationRaw ¶
Click to show internal directories.
Click to hide internal directories.