Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectDSN ¶
ConnectDSN connects to a database using the dsn string
func NewNullString ¶
func NewNullString(s string) sql.NullString
NewNullString creates a new sql.NullString from the given string
func RunWithinTransaction ¶
RunWithinTransaction runs the passed function using the passed transaction; if nil is passed as tx a new transaction is created. This is basically a wrapper function, that works with a possible nil-tx
Types ¶
type BitBool ¶
type BitBool bool
BitBool is an implementation of a bool for the MySQL type BIT(1). This type allows you to avoid wasting an entire byte for MySQL's boolean type TINYINT.
Click to show internal directories.
Click to hide internal directories.