Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DBMultiStatement - global database object which can issue multiple statements at once DBMultiStatement *sql.DB // ErrEmptyEnv - used for telling if an environment variable failed to be loaded. ErrEmptyEnv = errors.New("environment variable cannot be empty") )
Functions ¶
func DoMigrations ¶
DoMigrations - performs all the migrations registered to the migrations map
func RegisterMigration ¶
func RegisterMigration(m Migration)
RegisterMigration - Checks if the migration has been applied, and will queued if it hasnn't been applied yet.
func SetupMultistatementDBWithEnv ¶
func SetupMultistatementDBWithEnv() (err error)
SetupMultistatementDBWithEnv - setup to allow multiple statements per query
Types ¶
Click to show internal directories.
Click to hide internal directories.