Documentation ¶
Overview ¶
Package gormx - an extension of gorm library. This package loads configurations from cfgx module and create a global gorm.DB object. See Config for more information about the configuration options.
Index ¶
Constants ¶
View Source
const ( KeyDsn = "server.database.dsn" KeyUsername = "server.database.username" KeyPassword = "server.database.password" KeyHost = "server.database.host" KeyPort = "server.database.port" KeyDatabase = "server.database.database" KeyDebug = "server.database.debug" )
Variables ¶
View Source
var (
DB *gorm.DB
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.