Documentation
¶
Index ¶
Constants ¶
View Source
const ( // go time format strings MySQLTimestampDay = "2006-01-02" MySQLTimestampHour = "2006-01-02 15:00:00" MySQLTimestampMinute = "2006-01-02 15:04:00" MySQLDateTime = "2006-01-02 15:04:05" MySQLDate = "2006-01-02" MySQLTime = "15:04:05" // mysql datetime format strings MySQLInternalFormat = "%Y-%m-%d %H:%i:%s" MySQLDTMinute = "%Y-%m-%d %H:%i" MySQLDTHour = "%Y-%m-%d %H" MySQLDTDay = "%Y-%m-%d" )
View Source
const (
ERR_UNDEFINED_DSN = "connection error: MySQL DSN '%s' is undefined\n"
)
Variables ¶
This section is empty.
Functions ¶
func MustConnect ¶
MustConnect connects to the DSN at the given ENV VAR and fails loudly if unable to do so.
func ParseMySQLDateTime ¶
Types ¶
type Option ¶ added in v0.2.0
func ConnMaxLifetime ¶ added in v0.2.0
func MaxIdleConnections ¶ added in v0.2.0
func MaxOpenConnections ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.