package
0.0.3
Repository: https://github.com/ainsleyclark/verbis.git
Documentation: pkg.go.dev

# Functions

AddMigration adds a migration to the update registry which will be called when Update() is run.
NewMigrator creates a migrator for updating and installing Verbis.

# Constants

ErrDBConnectionMessage is used as an error message when no database connection could be established.
ErrTableNotFoundMessage is used as an error message when a table is missing from the installation.
MySQLDriver driver is represented under DB_DRIVER for MySQL.
PostgresDriver driver is represented under DB_DRIVER for postgres.

# Variables

ErrCallBackMismatch is returned by AddMigration when there has been a mismatch in the amount of callbacks passed.
ErrTableNotFound is returned by the driver if there are tables missing from the installation.
Tables define the current database tables within Verbis.

# Structs

Migration represents a singular migration for a single version.

# Interfaces

Migrator is the core updater for Verbis, it takes in a version and migrates the migrations up to the major version.

# Type aliases

CallBackFn is the function type when migrations are running up or Down.
MigrationRegistry contains a slice of pointers to each migration.