package
0.0.0-20230925091837-55f7a6b23beb
Repository: https://github.com/xdbfoundation/go.git
Documentation: pkg.go.dev
# Functions
Asset loads and returns the asset for the given name.
AssetDigest returns the digest of the file with the given name.
AssetDir returns the file names below a certain directory embedded in the file by go-bindata.
AssetInfo loads and returns the asset info for the given name.
AssetNames returns the names of the assets.
AssetString returns the asset contents as a string (instead of a []byte).
Digests returns a map of all known files and their checksums.
GetMigrationsUp returns a list of names of any migrations needed in the "up" direction (more recent schema versions).
GetNumMigrationsDown returns the number of migrations to apply in the "down" direction to return to the older schema version expected by this version of Frontier.
Migrate performs schema migration.
MustAsset is like Asset but panics when Asset would return an error.
MustAssetString is like AssetString but panics when Asset would return an error.
RestoreAsset restores an asset under the given directory.
RestoreAssets restores an asset under the given directory recursively.
Status returns information about the current status of db migrations.
# Constants
MigrateDown causes migrations to be run in the "down" direction.
MigrateRedo causes migrations to be run down, then up.
MigrateUp causes migrations to be run in the "up" direction.
# Variables
Migrations represents all of the schema migration for frontier.
# Type aliases
MigrateDir represents a direction in which to perform schema migrations.