package
1.1.0
Repository: https://github.com/rancher/go-dqlite.git
Documentation: pkg.go.dev

# Functions

NewDriver creates a new dqlite driver, which also implements the driver.Driver interface.
WithConnectionBackoffCap sets the maximum connection retry backoff value, (regardless of the backoff factor) for retrying failed connection attempts.
WithConnectionBackoffFactor sets the exponential backoff factor for retrying failed connection attempts.
WithConnectionTimeout sets the connection timeout.
WithContext sets a global cancellation context.
WithContextTimeout sets the default client context timeout when no context deadline is provided.
WithDialFunc sets a custom dial function.
WithLogFunc sets a custom logging function.

# Constants

Error codes.

# Variables

DefaultNodeStore is a convenience alias of client.DefaultNodeStore.
ErrNoAvailableLeader is returned as root cause of Open() if there's no leader available in the cluster.

# Structs

Conn implements the sql.Conn interface.
Driver perform queries against a dqlite server.
Result is the result of a query execution.
Rows is an iterator over an executed query's results.
Stmt is a prepared statement.
Tx is a transaction.

# Type aliases

DialFunc is a function that can be used to establish a network connection with a dqlite node.
Error is returned in case of database errors.
NodeInfo is a convenience alias of client.NodeInfo.
NodeStore is a convenience alias of client.NodeStore.
Option can be used to tweak driver parameters.