Documentation
¶
Index ¶
- func Execute[Stmt StmtHolder, D Doer[Stmt]](ctx context.Context, mod Module[Stmt], do D, ...) (D, error)
- func ExecuteOnce[D txn.Doer[Options, Beginner]](ctx context.Context, beginner Beginner, do D, ...) (D, error)
- func Ping(beginner Beginner, limit int, count txn.PingCount) (int, error)
- type Beginner
- type Doer
- type DoerBase
- type MgoOptions
- type Module
- type ModuleBase
- type Options
- type StmtHolder
- type Txn
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 MgoOptions ¶
type MgoOptions struct {
// contains filtered or unexported fields
}
type Module ¶
type Module[Stmt StmtHolder] interface { Beginner() Beginner }
type ModuleBase ¶
type ModuleBase[Stmt StmtHolder] struct { // contains filtered or unexported fields }
func (*ModuleBase[_]) Beginner ¶
func (b *ModuleBase[_]) Beginner() Beginner
func (*ModuleBase[_]) Init ¶
func (b *ModuleBase[_]) Init(beginner Beginner)
type StmtHolder ¶
type StmtHolder = any
Click to show internal directories.
Click to hide internal directories.