Jackc/pgx: Difference between revisions
Jump to navigation
Jump to search
Line 8: | Line 8: | ||
=Overview= | =Overview= | ||
<code>jackc/pgx</code> is a PostgreSQL low-level, high performance driver and toolkit that exposes PostgreSQL-specific features such as LISTEN/NOTIFY and COPY. It also includes an adapter for the standard <code>[[Go_Package_database|database/sql]]</code> package, but using <code>database/sql</code> is optional. It understands PostgreSQL data types. <code>jackc/pgx</code> is recommended when the application '''only''' targets PostgreSQL. | <code>jackc/pgx</code> is a PostgreSQL low-level, high performance driver and toolkit that exposes PostgreSQL-specific features such as LISTEN/NOTIFY and COPY. It also includes an adapter for the standard <code>[[Go_Package_database|database/sql]]</code> package, but using <code>database/sql</code> is optional. It understands PostgreSQL data types. <code>jackc/pgx</code> is recommended when the application '''only''' targets PostgreSQL. | ||
=Installation= | |||
<syntaxhighlight lang='bash'> | |||
go get github.com/jackc/pgx/v5 | |||
</syntaxhighlight> | |||
=Database Operations= | =Database Operations= | ||
==Open a Connection== | ==Open a Connection== |
Revision as of 22:02, 21 May 2024
External
- https://github.com/jackc/pgx
- https://github.com/jackc/pgx/wiki/Getting-started-with-pgx
- https://www.youtube.com/watch?v=sXMSWhcHCf8
Internal
Overview
jackc/pgx
is a PostgreSQL low-level, high performance driver and toolkit that exposes PostgreSQL-specific features such as LISTEN/NOTIFY and COPY. It also includes an adapter for the standard database/sql
package, but using database/sql
is optional. It understands PostgreSQL data types. jackc/pgx
is recommended when the application only targets PostgreSQL.
Installation
go get github.com/jackc/pgx/v5