# Functions
BindNamed binds a struct or a map to a query with named parameters.
BindType returns the bindtype for a given database given a drivername.
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.
LoadFile exec's every statement in a file (as a single call to Exec).
LoadFileContext exec's every statement in a file (as a single call to Exec).
MapScan scans a single Row into the dest map[string]interface{}.
MustConnect connects to a database and panics on error.
MustExec execs the query using e and panics if there was an error.
MustExecContext execs the query using e and panics if there was an 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.
NamedExecContext 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).
NamedQueryContext 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.
Preparex prepares a statement.
PreparexContext prepares a statement.
Rebind a query from the default bindtype (QUESTION) to the target bindtype.
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
No description provided by the author
NameMapper is used to map column names to struct field names.
# Structs
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.
NamedStmt is a prepared statement that executes named queries.
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.
Stmt is an sqlx wrapper around sql.Stmt with extra functionality.
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.
ExecerContext is an interface used by MustExecContext and LoadFileContext.
Ext is a union interface which can bind, query, and exec, used by NamedQuery and NamedExec.
ExtContext is a union interface which can bind, query, and exec, with Context used by NamedQueryContext and NamedExecContext.
Preparer is an interface used by Preparex.
PreparerContext is an interface used by PreparexContext.
Queryer is an interface used by Get and Select.
QueryerContext is an interface used by GetContext and SelectContext.