Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 1.3 KB

README.md

File metadata and controls

20 lines (14 loc) · 1.3 KB

Go Reference Build Status

pgxutil

pgxutil is a collection of utilities for working with pgx. They are things I personally find useful and experiments that may eventually be incorporated into pgx.

It includes higher level functions such as Select, Insert, InsertReturning, Update, and UpdateReturning. It also includes *Row variants of these functions that require exactly one row to be selected or modified. Queue* variants work queue into a *pgx.Batch instead of directly executing the SQL.

It also includes interfaces Queryer, Execer, and DB. Queryer and Execer are satisfied by the Query and Exec methods respectively while DB is the common methods implemented by *pgx.Conn, *pgxpool.Pool, and pgx.Tx. These interfaces allow for more generic code that can work with any of these types.

Package Status

The API may change at any time or the package may be abandoned. It may be better to fork or copy the code into your own projects rather than directly depending on this package.