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 List[T any](ctx context.Context, db *sqlx.DB, query, primaryKey string, p ListParams[T]) ([]T, error)
- func NewTestDB(t testing.TB) *sqlx.DB
- func OpenDB(dsn string) (*sqlx.DB, error)
- type ListParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.