# Functions
ApplyMigrations applies migration (or not depending on dryrun flag).
DB returns the current sql.DB object.
DBMap returns a propor intialized gorp.DBMap pointer.
Init initialize sql.DB object by checking environment variables and connecting to database.
InitSchemas checks that all tables are correct, and create them if not.
Set is for tetsing purpose, we need to set manually the connection.
Status returns database driver and status in a printable string.
# Variables
DBCmd is the root command for database management.
# Structs
MigrationLock is used to lock the migration (managed by gorp).
# Interfaces
Executer executes SQL query.
Querier executes query in database.
QueryExecuter executes and queries SQL query.
Scanner is implemented by sql.Row and sql.Rows.
# Type aliases
PipelineScheduler is a gorp wrapper around sdk.PipelineScheduler.
PipelineSchedulerExecution is a gorp wrapper around sdk.PipelineSchedulerExecution.
TemplateExtension is a gorp wrapper around sdk.TemplateExtension.
WorkerModel is a gorp wrapper around sdk.Model.