Documentation
¶
Index ¶
- func ContextWithDB(ctx context.Context, db bun.IDB) context.Context
- func DBFromContext(ctx context.Context) bun.IDB
- func LoaderFor[T any]() *modelLoader[T]
- func Model(mod any) *model
- func RunInTx(ctx context.Context, opts *sql.TxOptions, fn func(ctx context.Context) error) error
- type Attributes
- type IOptional
- type Optional
- type PKs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attributes ¶
type Optional ¶
func MakeOptional ¶
Click to show internal directories.
Click to hide internal directories.