# Packages
No description provided by the author
# Functions
BindDriver sets the BindType for driverName to bindType.
BindType returns the bind type for a given database given a driver name.
Connect to a database and verify with a ping.
ConnectContext to a database and verify with a ping.
Get does a QueryRow using the provided Queryer, and scans the resulting row to dest.
GetContext does a QueryRow using the provided Queryer, and scans the resulting row to dest.
In expands slice values in args, returning the modified query string and a new arg list that can be executed by a database.
MapScan scans a single Row into the dest map[string]interface{}.
MustConnect connects to a database and panics on error.
MustOpen is the same as sql.Open, but returns an *sqlx.DB instead and panics on error.
Named takes a query using named parameters and an argument and returns a new query with a list of args that can be executed by a database.
NamedExec uses BindStruct to get a query executable by the driver and then runs Exec on the result.
NamedQuery binds a named query and then runs Query on the result using the provided Ext (sqlx.Tx, sqlx.Db).
NewDB returns a new sqlx DB wrapper for a pre-existing *sql.DB.
Open is the same as sql.Open, but returns an *sqlx.DB instead.
Rebind a query from the default bind type (QUESTION) to the target bind type.
No description provided by the author
Select executes a query using the provided Queryer, and StructScans each row into dest, which must be a slice.
SelectContext executes a query using the provided Queryer, and StructScans each row into dest, which must be a slice.
SliceScan a row, returning a []interface{} with values similar to MapScan.
StructScan all rows from an sql.Rows or an sqlx.Rows into the dest slice.
# Constants
Bindvar types supported by Rebind, BindMap and BindStruct.
Bindvar types supported by Rebind, BindMap and BindStruct.
Bindvar types supported by Rebind, BindMap and BindStruct.
Bindvar types supported by Rebind, BindMap and BindStruct.
Bindvar types supported by Rebind, BindMap and BindStruct.
# Variables
NameMapper is used to map column names to struct field names.
# Structs
Conn is a wrapper around sql.Conn with extra functionality.
DB is a wrapper around sql.DB which keeps track of the driverName upon Open, used mostly to automatically bind named queries using the right bindvars.
Row is a reimplementation of sql.Row in order to gain access to the underlying sql.Rows.Columns() data, necessary for StructScan.
Rows is a wrapper around sql.Rows which caches costly reflect operations during a looped StructScan.
Tx is an sqlx wrapper around sql.Tx with extra functionality.
# Interfaces
ColScanner is an interface used by MapScan and SliceScan.
Execer is an interface used by MustExec and LoadFile.
Ext is a union interface which can bind, query, and exec, used by NamedQuery and NamedExec.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Queryer is an interface used by Get and Select.
QueryerContext is an interface used by GetContext and SelectContext.