https://github.com/jackc/pgxutil
https://github.com/jackc/pgxutil
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jackc/pgxutil
- Owner: jackc
- License: mit
- Created: 2020-03-28T19:01:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-15T02:08:34.000Z (over 1 year ago)
- Last Synced: 2025-03-25T16:15:51.953Z (about 2 months ago)
- Language: Go
- Size: 113 KB
- Stars: 23
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pkg.go.dev/github.com/jackc/pgxutil)
[](https://github.com/jackc/pgxutil/actions/workflows/ci.yml)# pgxutil
pgxutil is a collection of utilities for working with [pgx](https://github.com/jackc/pgx). They are things I personally
find useful and experiments that may eventually be incorporated into [pgx](https://github.com/jackc/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.