package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

BeginCopyFrom starts a COPY FROM query.
BeginCopyTo starts a COPY TO query.
MakeQuery encapsulates a SQL query and its parameter into a function that can be applied to a connection object.
MarkWithConnectionClosed is a mix of errors.CombineErrors() and errors.Mark().
ParseBool parses a boolean string for use in CLI SQL commands.
StmtDiagCancelAllOutstandingRequests deletes all outstanding statement diagnostics activation requests.
StmtDiagCancelOutstandingRequest deletes an outstanding statement diagnostics activation request.
StmtDiagDeleteAllBundles deletes all statement diagnostics bundles.
StmtDiagDeleteBundle deletes a statement diagnostics bundle.
StmtDiagDownloadBundle downloads the bundle with the given ID to a file.
StmtDiagListBundles retrieves information about all available statement diagnostics bundles.
StmtDiagListOutstandingRequests retrieves outstanding statement diagnostics activation requests.

# Variables

ErrConnectionClosed is returned when an operation fails because the connection was closed.

# Structs

Context represents configuration for establishing SQL connections to servers.
CopyFromState represents an in progress COPY FROM.
InitialSQLConnectionError indicates that an error was encountered during the initial set-up of a SQL connection.
QueryStats is the result package for GetLastQueryStatistics.
QueryStatsDuration represents a duration value retrieved by GetLastQueryStatistics.
ServerInfo describes the remote server.
StmtDiagActivationRequest contains information about a statement diagnostics activation request.
StmtDiagBundleInfo contains information about a statement diagnostics bundle that was collected.

# Interfaces

CommandTag represents the result of a SQL command.
Conn represents a connection to a SQL server.
DriverConn is the type of the connection object returned by (Conn).GetDriverConn().
Rows describes a result set.
TxBoundConn is the type of a connection object visible to the closure passed to (Conn).ExecTxn.

# Type aliases

QueryFn is the type of functions produced by MakeQuery.