Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Migration ¶
type Migration struct { Name string MigrationFunc MigrationFunc RollbackFunc MigrationFunc }
func NewMigration ¶
func NewMigration(name string, migrationFunc, rollbackFunc MigrationFunc) Migration
type MigrationFunc ¶
type MigrationService ¶
type MigrationService struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(store Store) *MigrationService
func (*MigrationService) RunMigration ¶
func (m *MigrationService) RunMigration(ctx context.Context, migration Migration) error
func (*MigrationService) RunMigrations ¶
func (m *MigrationService) RunMigrations(ctx context.Context, migrations []Migration) error
type SqlStore ¶
type SqlStore struct {
// contains filtered or unexported fields
}
func (*SqlStore) AddMigration ¶
Click to show internal directories.
Click to hide internal directories.