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.