Versions in this module Expand all Collapse all v1 v1.1.5 Oct 28, 2022 Changes in this version + func AddDataSource(name string, dbPool *pool.DbPool) + func Commit(id uint64) error + func GetConnection(name string) (*pool.Connection, error) + func GetTx(id uint64, dataSourceName string) (*sql.Tx, error) + func Rollback(id uint64) error + func SelectList(connection *sql.DB, sql string, params []interface{}) ([]map[string]string, error) + func Transaction() (uint64, error) + func Update(connection *sql.DB, sql string, params []interface{}) (sql.Result, error) + func UpdateByTx(tx *sql.Tx, sql string, params []interface{}) (sql.Result, error) + type TxData struct + Conn *pool.Connection + Tx *sql.Tx