Documentation
¶
Index ¶
- func Exec(ctx context.Context, db DB, query string, args []interface{}) (sql.Result, error)
- func GetTable(m any) string
- func GetTableSingular(m any) string
- func Register(ctx context.Context, config Config, migrations Upper)
- func RegisterDB(ctx context.Context, db *sqlx.DB)
- func RegisterTransactions(ctx context.Context, mtx sync.Locker)
- func Value[T any](txFunc Transaction, cb func(tx *sqlx.Tx) (T, error)) (T, error)
- type Config
- type DB
- type Read
- type Tabler
- type Transaction
- type Update
- type Upper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTableSingular ¶
Types ¶
type DB ¶
type DB interface {
sqlx.QueryerContext
sqlx.ExecerContext
DriverName() string
}
Click to show internal directories.
Click to hide internal directories.