Documentation ¶
Index ¶
- func DoTx(ctx context.Context, db *sqlx.DB, fn func(tx *sqlx.Tx) error) error
- func DoTx1[T any](ctx context.Context, db *sqlx.DB, fn func(tx *sqlx.Tx) (T, error)) (T, error)
- func DoTx2[A, B any](ctx context.Context, db *sqlx.DB, fn func(tx *sqlx.Tx) (A, B, error)) (A, B, error)
- func NewTestDB(t testing.TB) *sqlx.DB
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.