Documentation ¶
Index ¶
- func Execute[T any, D Doer[T]](ctx context.Context, mod Module, do D, fn txn.DoFunc[Options, Beginner, D], ...) (D, error)
- func ExecuteOnce[D txn.Doer[Options, Beginner]](ctx context.Context, beginner Beginner, do D, ...) error
- func Ping(beginner Beginner, limit int, count txn.PingCount) (int, error)
- type Beginner
- type Doer
- type DoerBase
- type Module
- type ModuleBase
- type ModuleSetter
- type Options
- type RawTx
- type RawTxn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Doer ¶
type Doer[T any] interface { txn.Doer[Options, Beginner] DefaultSetters(title string) []txn.DoerFieldSetter Client() T SetClient(T) }
Doer defines the interface for PGX transaction operations.
type DoerBase ¶
type DoerBase[T any] struct { txn.DoerBase[Options, Beginner] // contains filtered or unexported fields }
DoerBase provides a base implementation for the Doer interface.
func (*DoerBase[_]) DefaultSetters ¶
func (do *DoerBase[_]) DefaultSetters(title string) []txn.DoerFieldSetter
type ModuleBase ¶
type ModuleBase struct {
// contains filtered or unexported fields
}
func (*ModuleBase) Beginner ¶
func (b *ModuleBase) Beginner() Beginner
func (*ModuleBase) Mutate ¶ added in v0.0.10
func (b *ModuleBase) Mutate(setters ...ModuleSetter)
type ModuleSetter ¶ added in v0.0.10
type ModuleSetter func(*ModuleBase)
func WithBeginner ¶ added in v0.0.10
func WithBeginner(value Beginner) ModuleSetter
Click to show internal directories.
Click to hide internal directories.