Documentation ¶
Index ¶
- type MigrationHistory
- type MigrationRecord
- func (mh *MigrationRecord) DeleteHistory(ctx context.Context, migrationData interface{}) error
- func (mh *MigrationRecord) DropHistory(ctx context.Context) error
- func (mh *MigrationRecord) GetAllHistories(ctx context.Context) (*[]history_data.MigrationRecordData, error)
- func (mh *MigrationRecord) GetHistory(ctx context.Context, migrationName string) (interface{}, error)
- func (mh *MigrationRecord) GetLatestHistory(ctx context.Context) (interface{}, error)
- func (mh *MigrationRecord) InitializeHistory(ctx context.Context) error
- func (mh *MigrationRecord) SaveHistory(ctx context.Context, migrationData interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MigrationHistory ¶
type MigrationHistory interface { InitializeHistory(ctx context.Context) error DropHistory(ctx context.Context) error SaveHistory(ctx context.Context, migrationData interface{}) error DeleteHistory(ctx context.Context, migrationData interface{}) error GetHistory(ctx context.Context, migrationName string) (interface{}, error) GetLatestHistory(ctx context.Context) (interface{}, error) }
type MigrationRecord ¶
func (*MigrationRecord) DeleteHistory ¶
func (mh *MigrationRecord) DeleteHistory(ctx context.Context, migrationData interface{}) error
func (*MigrationRecord) DropHistory ¶
func (mh *MigrationRecord) DropHistory(ctx context.Context) error
func (*MigrationRecord) GetAllHistories ¶
func (mh *MigrationRecord) GetAllHistories(ctx context.Context) (*[]history_data.MigrationRecordData, error)
func (*MigrationRecord) GetHistory ¶
func (mh *MigrationRecord) GetHistory(ctx context.Context, migrationName string) (interface{}, error)
func (*MigrationRecord) GetLatestHistory ¶
func (mh *MigrationRecord) GetLatestHistory(ctx context.Context) (interface{}, error)
func (*MigrationRecord) InitializeHistory ¶
func (mh *MigrationRecord) InitializeHistory(ctx context.Context) error
func (*MigrationRecord) SaveHistory ¶
func (mh *MigrationRecord) SaveHistory(ctx context.Context, migrationData interface{}) error
Click to show internal directories.
Click to hide internal directories.