package
1.2.4
Repository: https://github.com/processout/dat.git
Documentation: pkg.go.dev

# Functions

MustPing pings a database with an exponential backoff.
NewDB instantiates a Connection for a given database/sql connection.
NewDBFromSqlx creates a new Connection object from existing Sqlx.DB.
NewDBFromString instantiates a Connection from a given driver and connection string.
NewExecer creates a new instance of Execer.
SetCache sets this runner's cache.
WrapSqlxExt converts a sqlx.Ext to a *Queryable.
WrapSqlxTx creates a Tx from a sqlx.Tx.

# Variables

Cache caches query results.
ErrTxRollbacked occurs when Commit() or Rollback() is called on a transaction that has already been rollbacked.
LogErrNoRows tells runner to log `sql.ErrNoRows`.
LogQueriesThreshold is the threshold for logging "slow" queries.

# Structs

DB represents an abstract database connection pool.
Execer executes queries against a database.
Queryable is an object that can be queried.
Tx is a transaction for the given Session.

# Interfaces

Connection is a queryable connection and represents a DB or Tx.