package
0.0.0-20170614201249-0b81c023a722
Repository: https://github.com/activestate/go.git
Documentation: pkg.go.dev
# Packages
Package driver defines interfaces to be implemented by database drivers as used by package sql.
# Functions
Drivers returns a sorted list of the names of the registered drivers.
Named provides a more concise way to create NamedArg values.
Open opens a database specified by its database driver name and a driver-specific data source name, usually consisting of at least a database name and connection information.
Register makes a database driver available by the provided name.
# Constants
Various isolation levels that drivers may support in BeginTx.
Various isolation levels that drivers may support in BeginTx.
Various isolation levels that drivers may support in BeginTx.
Various isolation levels that drivers may support in BeginTx.
Various isolation levels that drivers may support in BeginTx.
Various isolation levels that drivers may support in BeginTx.
Various isolation levels that drivers may support in BeginTx.
Various isolation levels that drivers may support in BeginTx.
# Variables
ErrConnDone is returned by any operation that is performed on a connection that has already been committed or rolled back.
ErrNoRows is returned by Scan when QueryRow doesn't return a row.
ErrTxDone is returned by any operation that is performed on a transaction that has already been committed or rolled back.
# Structs
ColumnType contains the name and type of a column.
Conn represents a single database session rather a pool of database sessions.
DB is a database handle representing a pool of zero or more underlying connections.
DBStats contains database statistics.
A NamedArg is a named argument.
NullBool represents a bool that may be null.
NullFloat64 represents a float64 that may be null.
NullInt64 represents an int64 that may be null.
NullString represents a string that may be null.
Out may be used to retrieve OUTPUT value parameters from stored procedures.
Row is the result of calling QueryRow to select a single row.
Rows is the result of a query.
Stmt is a prepared statement.
Tx is an in-progress database transaction.
TxOptions holds the transaction options to be used in DB.BeginTx.
# Type aliases
IsolationLevel is the transaction isolation level used in TxOptions.
RawBytes is a byte slice that holds a reference to memory owned by the database itself.