package
0.0.0-20170614201249-0b81c023a722
Repository: https://github.com/activestate/go.git
Documentation: pkg.go.dev

# 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 bools.
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 sql package that a driver.Conn is in a bad state (such as the server having earlier closed the connection) and the sql package should retry on a new connection.
ErrRemoveArgument may be returned from NamedValueChecker to instruct the 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.
ConnPrepareContext enhances the Conn interface with context.
Driver is the interface that must be implemented by a database driver.
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.
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.
Value is a value that drivers must be able to handle.
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.