pgx

package
v0.0.0-...-221a0dc Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PgxContext

type PgxContext[P any, R any] struct {
	Tx      pgx.Tx
	Context context.Context
	// contains filtered or unexported fields
}

func NewPgxContext

func NewPgxContext[P any, R any](outerTx pgx.Tx, tx pgx.Tx, context context.Context) *PgxContext[P, R]

func (*PgxContext[P, R]) Fail

func (ctx *PgxContext[P, R]) Fail(operation *a.TrackedOperation[P, R])

func (*PgxContext[P, R]) Success

func (ctx *PgxContext[P, R]) Success(operation *a.TrackedOperation[P, R])

type PgxRepository

type PgxRepository[P any, R any] struct {
	// contains filtered or unexported fields
}

func NewPgxRepository

func NewPgxRepository[P any, R any](pool *pgxpool.Pool) *PgxRepository[P, R]

func (*PgxRepository[P, R]) DeleteExpired

func (repo *PgxRepository[P, R]) DeleteExpired(status a.TrackedOperationStatus, count int) int64

func (*PgxRepository[P, R]) FailExpiredStillRunning

func (repo *PgxRepository[P, R]) FailExpiredStillRunning(count int) int64

func (*PgxRepository[P, R]) FailTimedOutStillRunning

func (repo *PgxRepository[P, R]) FailTimedOutStillRunning(count int) int64

func (*PgxRepository[P, R]) FetchOrStart

func (repo *PgxRepository[P, R]) FetchOrStart(operation a.Operation[P, R, *PgxContext[P, R]]) *a.TrackedOperation[P, R]

func (*PgxRepository[P, R]) NewSession

func (repo *PgxRepository[P, R]) NewSession(operation a.Operation[P, R, *PgxContext[P, R]]) *a.Session[P, R, *PgxContext[P, R]]

Jump to

Keyboard shortcuts

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