Versions in this module Expand all Collapse all v0 v0.0.1 Nov 25, 2022 Changes in this version + var Migrations migrate.MigrationSource = &migrate.AssetMigrationSource + func Asset(name string) ([]byte, error) + func AssetDigest(name string) ([sha256.Size]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func AssetString(name string) (string, error) + func Digests() (map[string][sha256.Size]byte, error) + func GetMigrationsUp(dbUrl string) (migrationIds []string) + func GetNumMigrationsDown(dbUrl string) (nMigrations int) + func Migrate(db *sql.DB, dir MigrateDir, count int) (int, error) + func MustAsset(name string) []byte + func MustAssetString(name string) string + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + func Status(db *sql.DB) (string, error) + type MigrateDir string + const MigrateDown + const MigrateRedo + const MigrateUp