# Functions
Batch is an iterator for batches of records.
BulkDeleteRuns removes JobRuns and their related records: TaskRuns and RunResults.
EnvVarName gets the environment variable name for a config schema field.
NewConfig returns the config with the environment variables set to their respective fields, or their defaults if environment variables are not set.
NewConnection returns a Connection which holds all of the configuration necessary for managing the database connection.
NewLockingStrategy returns the locking strategy for a particular dialect to ensure exlusive access to the orm.
NewORM initializes the orm with the configured uri.
NewPostgresLockingStrategy returns a new instance of the PostgresLockingStrategy.
# Constants
Ascending is the sort order going up, i.e.
BatchSize is the default number of DB records to access in one batch.
Descending is the sort order going down, i.e.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrNoAdvisoryLock is returned when an advisory lock can't be acquired.
ErrOptimisticUpdateConflict is returned when a record update failed because another update occurred while the model was in memory and the differences must be reconciled.
ErrorNotFound is returned when finding a single value fails.
ErrReleaseLockFailed is returned when releasing the advisory lock fails.
No description provided by the author
# Structs
No description provided by the author
ConfigSchema records the schema of configuration at the type level.
Connection manages all of the possible database connection setup and config.
LogLevel determines the verbosity of the events to be logged.
ORM contains the database object used by Chainlink.
PostgresLockingStrategy uses a postgres advisory lock to ensure exclusive access.
# Interfaces
ConfigReader represents just the read side of the config.
LockingStrategy employs the locking and unlocking of an underlying resource for exclusive access, usually a file or database.
SecretGenerator is the interface for objects that generate a secret used to sign or encrypt.
# Type aliases
BatchFunc is the function to execute on each batch of records, should return the count of records affected.
No description provided by the author
SortType defines the different sort orders available.