package
0.4.0
Repository: https://github.com/joelfischerr/scion.git
Documentation: pkg.go.dev

# Functions

ConfiguredMaxIdleConns returns the configured max idle connections in the config map and returns true if the limit was set.
ConfiguredMaxOpenConns returns the configured max open connections in the config map and returns true if the limit was set.
DeleteInTx executes delFunc in a transaction and returns the affected rows.
DoInTx executes the given action in a transaction.
ErrToMetricLabel classifies the error into a label that can be used in metrics.
No description provided by the author
No description provided by the author
No description provided by the author
NewSqlite returns a new SQLite backend opening a database at the given path.
No description provided by the author
No description provided by the author
SetConnLimits sets the configured limits on the database.
ValidateConfigLimits validates connection limits on the given config map.

# Constants

MaxIdleConnsKey is the configuration key for max idle connections.
MaxOpenConnsKey is the configuration key for max open connections.

# Variables

ErrDataInvalid indicates invalid data is stored in the DB.
ErrInvalidInputData indicates invalid data was tried to input in the DB.
ErrReadFailed indicates that reading from the DB failed.
ErrTx indicates a transaction error.
ErrWriteFailed indicates that writing to the DB failed.

# Interfaces

LimitConfig is a configuration of database limits.
LimitSetter allows setting the database connection limits.
Sqler contains the common functions of *sql.DB and *sql.Tx.