Documentation ¶ Index ¶ func DoTx(ctx context.Context, db *sqlx.DB, f func(tx *sqlx.Tx) error) error func DoTx1[T any](ctx context.Context, db *sqlx.DB, f func(tx *sqlx.Tx) (T, error)) (T, error) func OpenDB(p string) (*sqlx.DB, error) func OpenMemory() *sqlx.DB Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DoTx ¶ func DoTx(ctx context.Context, db *sqlx.DB, f func(tx *sqlx.Tx) error) error func DoTx1 ¶ func DoTx1[T any](ctx context.Context, db *sqlx.DB, f func(tx *sqlx.Tx) (T, error)) (T, error) func OpenDB ¶ func OpenDB(p string) (*sqlx.DB, error) func OpenMemory ¶ func OpenMemory() *sqlx.DB Types ¶ This section is empty. Source Files ¶ View all Source files dbutil.go Click to show internal directories. Click to hide internal directories.