package
10.3.17-gitref.1+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev

# Functions

New returns a Backend that uses a driver to communicate with the database.
TestDriver executes the backend compliance suite for a driver.

# Constants

DefaultDatabase is default name of the backend database.
DefaultPurgePeriod is the default frequency for purging database records.
DefaultRetryDelayPeriod is the default delay before a transaction will retry on serialization failure.
DefaultRetryTimeout is the default amount time allocated to retrying transactions.

# Variables

ErrAlreadyExists is returned by a transaction when a SQL query returns a unique constraint violation.
ErrNotFound is returned by a transaction when a SQL query returns sql.ErrNoRows.
ErrRetry is set as a transaction error when the transaction should be retried due to serialization failure.

# Structs

Backend implements a storage backend for SQL databases.
Config defines a configuration for the Backend.
Events is returned from the GetEvents Tx method.

# Interfaces

DB defines an interface to a database instance backed by a connection pool.
Driver defines the interface implemented by specific SQL backend implementations such as postgres.
Tx defines a database transaction.