package
0.0.0-20230203010516-6d4bf48beedd
Repository: https://github.com/onyx-protocol/onyx.git
Documentation: pkg.go.dev

# Packages

Package pgtest provides support functions for tests that need to use Postgres.

# Functions

ForQueryRows encapsulates a lot of boilerplate when making db queries.
IsUniqueViolation returns true if the given error is a Postgres unique constraint violation error.
IsValidJSONB returns true if the provided bytes may be stored in a Postgres JSONB data type.
No description provided by the author
NewListener creates a new pq.Listener and begins listening.

# Variables

No description provided by the author
ErrUserInputNotFound indicates that a query returned no results.

# Interfaces

DB holds methods common to the DB, Tx, and Stmt types in package sql.