Documentation ¶ Index ¶ type Config func Configure(_cfg config.Config, logger z.Logger) (Config, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Config ¶ type Config struct { Db *gorm.DB } func Configure ¶ func Configure(_cfg config.Config, logger z.Logger) (Config, error) Configure sets up the database connection based on the provided configuration and logger. It supports sqlite, postgres, and mysql databases. Will return an error if the connection cannot be established (fatal) Source Files ¶ View all Source files gorm.go Click to show internal directories. Click to hide internal directories.