package
2.8.3
Repository: https://github.com/contiamo/go-base.git
Documentation: pkg.go.dev

# Functions

GetJitter returns a duration within [0.05*interval, interval].
NewIniter creates a db init command that will execute the 000_init.sql The assets FileSystem must contain `migrations/000_init.sql`.
NewMigrater creates a migration command that will execute the given list of migrations.
NewPostIniter creates a db init command that will execute the view sql, and other post init sql.
NewPrepareDatabase is the standard entrypoint for setting up and migrating the application db.
NewSQLAssets creates a new filesystem that is compatible with the migration utilities.

# Structs

MigrationConfig contains the ordered migration and view sql statements that will be run during startup as well as the assets filesystem object.
QueueDBConfig hold the db configuration values required to initialize the db tables for the queue.
SQLAssets determines which filesystem object is used for the migrations flow and which for the views flow.