Documentation
¶
Index ¶
Constants ¶
View Source
const ( FmtTimestampDay = datetimes.FmtTimestampDay FmtTimestampHour = datetimes.FmtTimestampHour FmtTimestampMinute = datetimes.FmtTimestampMinute FmtDateTime = datetimes.FmtDateTime FmtDate = datetimes.FmtDate FmtTime = datetimes.FmtTime // mysql datetime format strings MySQLFmtDatetime = "%Y-%m-%d %H:%i:%s" MySQLFmtMinute = "%Y-%m-%d %H:%i" MySQLFmtHour = "%Y-%m-%d %H" MySQLFmtDay = "%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.