Documentation
¶
Index ¶
Constants ¶
View Source
const ( MaxOpenConns = 0 MaxIdleConns = 2 ConnMaxLifetime = time.Duration(0) * time.Minute )
Default values from the MySQL package.
Variables ¶
View Source
var ErrNoRowsAffected = errors.New("no rows were affected")
ErrNoRowsAffected is dedicated for logging purposes. It is used if a query runs fine but for some reason nothing was changed in database.
Functions ¶
func CalculateOffset ¶
CalculateOffset calculates `OFFSET` value for query.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.