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

# Functions

Connect connects to postgres and returns a [*pgxpool.Pool].
CreatePgxSyncTx returns a [pgx.Tx] which works concurrently.
NewSpanDB creates a new [SpanDB].
PgxErrorToHTTPError converts a database error from [github.com/jackc/pgx] to an appropriate HTTP error.

# Structs

PgxSyncRow is a concurrent wrapper for [pgx.Row].
PgxSyncRows is a concurrent wrapper for [pgx.Rows].
PgxSyncTx uses [database.SyncTx] to make sure [pgx.Tx] can be used concurrently.
SpanDB is used to wrap database actions in [sentry.Span]s.

# Interfaces

DB provides a uniform interface for the postgres database connection, pools and transactions.