Documentation ¶
Index ¶
Constants ¶
View Source
const ( SqlN = " " SqlAnd = " AND " SqlOr = " OR " SqlLike = " LIKE ?" SqlEq = " = ?" SqlWhere = " WHERE " SqlOrder = " ORDER BY " SqlComma = " , " )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { DSN string `env:"DB_DSN,default=root:pass@tcp(localhost:3306)/project"` MaxOpenConnections int `env:"DB_MAX_OPEN_CONNECTIONS,default=5"` DSNro string `env:"DB_DSN_RO"` MaxOpenConnectionsRo int `env:"DB_RO_MAX_OPEN_CONNECTIONS,default=5"` RoDisable bool `env:"DB_RO_DISABLE,default=false"` }
Click to show internal directories.
Click to hide internal directories.