Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2022 Changes in this version + var ErrDBDuplicatedEntry = errors.New("duplicated entry") + var ErrDBNotFound = errors.New("not found") + func NamedExecContext(ctx context.Context, log *zap.SugaredLogger, db sqlx.ExtContext, query string, ...) error + func NamedQuerySlice(ctx context.Context, log *zap.SugaredLogger, db sqlx.ExtContext, query string, ...) error + func NamedQueryStruct(ctx context.Context, log *zap.SugaredLogger, db sqlx.ExtContext, query string, ...) error + func Open(cfg Config) (*sqlx.DB, error) + func StatusCheck(ctx context.Context, db *sqlx.DB) error + func WithinTran(ctx context.Context, log *zap.SugaredLogger, db Transactor, ...) error + type Config struct + DisableTLS bool + Host string + MaxIdleConns int + MaxOpenConns int + Name string + Password string + User string + type Transactor interface + Beginx func() (*sqlx.Tx, error)