package
0.1.5
Repository: https://github.com/xdoubleu/essentia.git
Documentation: pkg.go.dev

# Packages

Package postgres provides several [github.com/jackc/pgx] related helpers for interacting with postgres.

# Functions

CreateSyncTx creates a [SyncTx] which makes sure a database transaction can be used concurrently.
WrapInSyncTx is used to make sure a transactional database action can run concurrently.
WrapInSyncTxNoError is used to make sure a transactional database action can run concurrently.
WrapInSyncTxNoReturn is used to make sure a transactional database action can run concurrently.
WrapWithSpan is used to wrap a database action in a [sentry.Span].
WrapWithSpanNoError is used to wrap a database action in a [sentry.Span].

# Variables

ErrResourceConflict is an error with value "resource unique value already used".
ErrResourceNotFound is an error with value "resource not found".

# Structs

SyncTx wraps a database transaction to make sure it can be used concurrently.

# Interfaces

MinimalDBTx is the minimal interface a DB transaction should implement.