uow

package
v1.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceDecorator

type TraceDecorator struct {
	// contains filtered or unexported fields
}

func NewTraceDecorator

func NewTraceDecorator(
	traceProvider tracing.Provider,
	spanConfig tracing.SpanConfig,
	base pg.UnitOfWork,
) *TraceDecorator

func (*TraceDecorator) Do

func (d *TraceDecorator) Do(
	ctx context.Context,
	fn func(ctx context.Context, tx pg.Transaction) error,
) error

type UnitOfWork

type UnitOfWork struct {
	// contains filtered or unexported fields
}

func New

func New(pg pg.Connector, opts ...pg.TransactionOption) *UnitOfWork

func (*UnitOfWork) Do

func (uow *UnitOfWork) Do(
	ctx context.Context,
	fn func(ctx context.Context, tx pg.Transaction) error,
) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL