Documentation ¶
Index ¶
- func Begin(ctx context.Context, db *DB) context.Context
- func HandleCommit(ctx context.Context, hook pkg.Hook)
- func HandleRollback(ctx context.Context, hook pkg.Hook)
- func Run[T any](ctx context.Context, f func(ctx context.Context, db *gorm.DB) (T, error), ...) (res T, err error)
- func With[T any](ctx context.Context, f func(ctx context.Context, db *gorm.DB) (T, error)) (T, error)
- func WithTransaction[T any](ctx context.Context, f func(ctx context.Context, db *gorm.DB) (T, error)) (T, error)
- type Connector
- type CyclicCounter
- type DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CyclicCounter ¶
type CyclicCounter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.