Versions in this module Expand all Collapse all v0 v0.0.1 Jul 28, 2026 Changes in this version + var ErrNotFound = errors.New("database source: key not found") + func IsNotFound(err error) bool + type Option func(*configOptions) + func WithChecksumColumn(col string) Option + func WithConnMaxLifetime(d time.Duration) Option + func WithDB(db *sql.DB) Option + func WithDSN(dsn string) Option + func WithDriver(driver string) Option + func WithKeyColumn(col string) Option + func WithMaxIdleConns(n int) Option + func WithMaxOpenConns(n int) Option + func WithPollInterval(d time.Duration) Option + func WithPrefix(prefix string) Option + func WithQuery(query string) Option + func WithTable(table string) Option + func WithValueColumn(col string) Option + type Reader struct + func New(_ context.Context, opts ...Option) (*Reader, error) + func (r *Reader) Close() error + func (r *Reader) Load(ctx context.Context, key string) (string, error) + func (r *Reader) Watch(ctx context.Context, key string) (<-chan struct{}, error)