# Functions
EnsureMigrations checks which migrations from the given folder need to be executed It performs all missing migrations This implementation does not use an existing db instance since the lock release mechanism in "NewWithDatabaseInstance" is buggy.
MustApplyDatabaseSeed applies all SQL queries from the given file to the currently active database.
SetupGORM loads the ORM with the given configuration The setup includes sending a ping and creating the database if it didn't exist.
# Constants
DialectMysql is the mysql dialect.
DialectPostgres is the postgres dialect.
# Structs
Config holds all configuration values for the DB setup.
GormLogrus is a logrus logger that implements the gorm interface for logging.