Documentation ¶
Index ¶
- func BulkInsert(db *sqlx.DB, tableName string, columns []string, rows [][]interface{}) (err error)
- func GetScalar(db *sqlx.DB, query string, args ...interface{}) (value interface{}, err error)
- func GetScalars(db *sqlx.DB, query string, args ...interface{}) (slice []interface{}, err error)
- func Tx(db *sqlx.DB, action func(tx *sqlx.Tx) error) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkInsert ¶
Does a bulk insert of data into a single table using a transaction to make it quick:
func GetScalars ¶
Gets a slice of scalar values from a DB query:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.