Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2025 v0.1.0 Nov 28, 2025 Changes in this version + var ErrAlreadyInTx = errors.New("already executing in existing db tx") + var ErrNotInTx = errors.New("not executing in existing db tx") + func CheckNoRows(inErr, outErr error) error + func CheckUniqueViolation(inErr, outErr error) error + func ExecuteInTx(ctx context.Context, db *sqlx.DB, isolation sql.IsolationLevel, ...) (err error) + func ExecuteRetryable(fn func() error) error + func ExecuteTxWithinCtx(ctx context.Context, db *sqlx.DB, isolation sql.IsolationLevel, ...) error + func IsNoRows(err error) bool + func IsUniqueViolation(err error) bool + func NewWithAwsIam(username, hostname, port, dbname string, config aws.Config) (*sql.DB, error) + func NewWithUsernameAndPassword(username, password, hostname, port, dbname string) (*sql.DB, error) + type Config struct + DbName string + Host string + MaxIdleConnections int + MaxOpenConnections int + Password string + Port int + User string