Documentation
¶
Overview ¶
Package database provides the functionality to open, close and use a database
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Read *gorm.DB
Read Database connection for reading purposes
View Source
var Write *gorm.DB
Write Database connection for writing purposes
Functions ¶
Types ¶
type Config ¶
type Config struct { // type of the database, currently supports sqlite and postgres Type string // connection configuration Connection string // create another connection for reading only ReadConnection string // enable logging of the generated sql string Logging bool }
Config of the database connection
Click to show internal directories.
Click to hide internal directories.