# Functions
IsScanValue is equivalent to [IsValue].
IsValue reports whether v is a valid [Value] parameter type.
# Variables
Bool is a [ValueConverter] that converts input values to bool.
DefaultParameterConverter is the default implementation of [ValueConverter] that's used when a [Stmt] doesn't implement [ColumnConverter].
ErrBadConn should be returned by a driver to signal to the [database/sql] package that a driver.[Conn] is in a bad state (such as the server having earlier closed the connection) and the [database/sql] package should retry on a new connection.
ErrRemoveArgument may be returned from [NamedValueChecker] to instruct the [database/sql] package to not pass the argument to the driver query interface.
ErrSkip may be returned by some optional interfaces' methods to indicate at runtime that the fast path is unavailable and the sql package should continue as if the optional interface was not implemented.
Int32 is a [ValueConverter] that converts input values to int64, respecting the limits of an int32 value.
ResultNoRows is a pre-defined [Result] for drivers to return when a DDL command (such as a CREATE TABLE) succeeds.
String is a [ValueConverter] that converts its input to a string.
# Structs
NamedValue holds both the value name and value.
NotNull is a type that implements [ValueConverter] by disallowing nil values but otherwise delegating to another [ValueConverter].
Null is a type that implements [ValueConverter] by allowing nil values but otherwise delegating to another [ValueConverter].
TxOptions holds the transaction options.
# Interfaces
ColumnConverter may be optionally implemented by [Stmt] if the statement is aware of its own columns' types and can convert from any type to a driver [Value].
Conn is a connection to a database.
ConnBeginTx enhances the [Conn] interface with context and [TxOptions].
A Connector represents a driver in a fixed configuration and can create any number of equivalent Conns for use by multiple goroutines.
ConnPrepareContext enhances the [Conn] interface with context.
Driver is the interface that must be implemented by a database driver.
If a [Driver] implements DriverContext, then [database/sql.DB] will call OpenConnector to obtain a [Connector] and then invoke that [Connector]'s Connect method to obtain each needed connection, instead of invoking the [Driver]'s Open method for each connection.
Execer is an optional interface that may be implemented by a [Conn].
ExecerContext is an optional interface that may be implemented by a [Conn].
NamedValueChecker may be optionally implemented by [Conn] or [Stmt].
Pinger is an optional interface that may be implemented by a [Conn].
Queryer is an optional interface that may be implemented by a [Conn].
QueryerContext is an optional interface that may be implemented by a [Conn].
Result is the result of a query execution.
Rows is an iterator over an executed query's results.
RowsColumnTypeDatabaseTypeName may be implemented by [Rows].
RowsColumnTypeLength may be implemented by [Rows].
RowsColumnTypeNullable may be implemented by [Rows].
RowsColumnTypePrecisionScale may be implemented by [Rows].
RowsColumnTypeScanType may be implemented by [Rows].
RowsNextResultSet extends the [Rows] interface by providing a way to signal the driver to advance to the next result set.
SessionResetter may be implemented by [Conn] to allow drivers to reset the session state associated with the connection and to signal a bad connection.
Stmt is a prepared statement.
StmtExecContext enhances the [Stmt] interface by providing Exec with context.
StmtQueryContext enhances the [Stmt] interface by providing Query with context.
Tx is a transaction.
Validator may be implemented by [Conn] to allow drivers to signal if a connection is valid or if it should be discarded.
ValueConverter is the interface providing the ConvertValue method.
Valuer is the interface providing the Value method.
# Type aliases
IsolationLevel is the transaction isolation level stored in [TxOptions].
RowsAffected implements [Result] for an INSERT or UPDATE operation which mutates a number of rows.
Value is a value that drivers must be able to handle.