package
1.24.4
Repository: https://pkg.go.dev/std
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.
OpenDB opens a database using a [driver.Connector], allowing drivers to bypass a string based data source name.
Register makes a database driver available by the provided name.

# Constants

Various isolation levels that drivers may support in [DB.BeginTx].
Various isolation levels that drivers may support in [DB.BeginTx].
Various isolation levels that drivers may support in [DB.BeginTx].
Various isolation levels that drivers may support in [DB.BeginTx].
Various isolation levels that drivers may support in [DB.BeginTx].
Various isolation levels that drivers may support in [DB.BeginTx].
Various isolation levels that drivers may support in [DB.BeginTx].
Various isolation levels that drivers may support in [DB.BeginTx].

# Variables

ErrConnDone is returned by any operation that is performed on a connection that has already been returned to the connection pool.
ErrNoRows is returned by [Row.Scan] when [DB.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 connection rather than a pool of database connections.
DB is a database handle representing a pool of zero or more underlying connections.
DBStats contains database statistics.
A NamedArg is a named argument.
Null represents a value that may be null.
NullBool represents a bool that may be null.
NullByte represents a byte that may be null.
NullFloat64 represents a float64 that may be null.
NullInt16 represents an int16 that may be null.
NullInt32 represents an int32 that may be null.
NullInt64 represents an int64 that may be null.
NullString represents a string that may be null.
NullTime represents a [time.Time] that may be null.
Out may be used to retrieve OUTPUT value parameters from stored procedures.
Row is the result of calling [DB.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].

# Interfaces

A Result summarizes an executed SQL command.
Scanner is an interface used by [Rows.Scan].

# 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.