Documentation ¶
Overview ¶
Package protopgx includes wrapper logic to make a pgx connection type implement protoql.Store for use in generated code.
In init(), we will alter pgx.ErrNoRows to wrap (database/sql).ErrNoRows, and then update protoql.ErrNoRows to wrap that. This ensures that errors.Is(someErr, ErrNoRows) will always work as expected, regardless of whether the caller is checking pgx.ErrNoRows, sql.ErrNoRows, or protoql.ErrNoRows.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.