Documentation ¶
Index ¶
- type DB
- func (db *DB) CreateMetaCheckpointsIfNotExists() error
- func (db *DB) CreateMetaIfNotExists() error
- func (db *DB) CreateMetaVersionIfNotExists() (int, error)
- func (db *DB) DeleteMetaCheckpoints() error
- func (db *DB) GetMetaCheckpoints(filename string) ([]string, error)
- func (db *DB) GetMigrations() ([]migrate.Migration, error)
- func (db *DB) InsertMetaCheckpoint(filename, content, checksum string, idx int) error
- func (db *DB) InsertMigration(filename, content, checksum string) error
- func (db *DB) Open() error
- func (db *DB) UpgradeToV1(migrations []migrate.Migration) (err error)
- func (db *DB) UpsertMigration(filename, content, checksum string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB) CreateMetaCheckpointsIfNotExists ¶
func (*DB) CreateMetaIfNotExists ¶
func (*DB) CreateMetaVersionIfNotExists ¶
func (*DB) DeleteMetaCheckpoints ¶
func (*DB) InsertMetaCheckpoint ¶
func (*DB) InsertMigration ¶
func (*DB) UpgradeToV1 ¶
UpgradeToV1 migrates existing meta tables to the v1 format. Complete any migrations before running this function; this will not succeed if have any existing metacheckpoints.
func (*DB) UpsertMigration ¶
Click to show internal directories.
Click to hide internal directories.