Versions in this module Expand all Collapse all v0 v0.1.1 Feb 15, 2024 v0.1.0 Feb 7, 2024 Changes in this version + func WithTransaction(db *sqlx.DB, fn func(tx *sqlx.Tx) error) error + type DBHandler interface + Close func() + DB func() *sqlx.DB + Delete func(ctx context.Context, query string, params ...interface{}) (int64, error) + Get func(ctx context.Context, results interface{}, query string, params ...interface{}) error + GetById func(ctx context.Context, result interface{}, query string, id interface{}) error + Host func() string + Insert func(ctx context.Context, query string, params ...interface{}) error + InsertWithId func(ctx context.Context, query string, params ...interface{}) (int64, error) + Name func() string + Ping func() error + Port func() string + Select func(ctx context.Context, results interface{}, query string, params ...interface{}) error + Update func(ctx context.Context, query string, params ...interface{}) (int64, error)