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 Value[T any](txFunc Transaction, cb func(tx *sqlx.Tx) (T, error)) (T, error)
- type Config
- type DB
- type DBConfiger
- type Read
- type Tabler
- type Transaction
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTableSingular ¶
Types ¶
type DB ¶ added in v0.7.1
type DB interface { sqlx.QueryerContext sqlx.ExecerContext }
type DBConfiger ¶ added in v0.16.0
type DBConfiger interface {
DBConfig() Config
}
type Transaction ¶ added in v0.14.0
Click to show internal directories.
Click to hide internal directories.