Documentation ¶ Index ¶ func SetupConnectionSQL(cfg config.Database) (*gorm.DB, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SetupConnectionSQL ¶ func SetupConnectionSQL(cfg config.Database) (*gorm.DB, error) SetupConnectionSQL sets up a Database connection to an SQL database using the Gorm library. Depending on the given config.Database's engine, it will connect to either a MySQL or a Postgres database. Types ¶ This section is empty. Source Files ¶ View all Source files db.go Click to show internal directories. Click to hide internal directories.