github.com/jackc/pgx/v5
          
        go
pkg:golang/github.com/jackc/pgx/v5
            1,033 Dependabot PRs
3 days ago
514 repositories
16 repositories
Security Advisories
pgx SQL Injection via Protocol Message Size Overflow
Panic in Pipeline when PgConn is busy or closed in github.com/jackc/pgx
Recent PRs (filtered by: Merged , Patch PRs )
Bump the go-packages group with 15 updates
centrifugal/centrifugo #1048
chore(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
olexsmir/onasty #219
[gomod] bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in /kryptos
skulpturenz/shared-resources #704
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
spiffe/spire #6337
chore(deps): Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in /go
Bump the go-deps group across 1 directory with 3 updates
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
otakakot/sample-go-github-actions #116
chore(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
seaweedfs/seaweedfs #7238
chore(go): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
vgarvardt/gue #352
deps(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
nhalm/skimatik #38
deps(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
Recipe-Web-App/auth-service #31
deps(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
ferama/pg #53
chore: bump the go-dependencies group in /api with 7 updates
wesleynw/splajompy #267
chore: bump the deps group with 2 updates
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in the all group
smallstep/nosql #80
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
k3s-io/kine #520
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
MarioCarrion/todo-api-microservice-example #695
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
waduhek/website #40
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in the production-dependencies group
rstudio/platform-lib #233
chore(deps): bump the prod-deps group across 1 directory with 9 updates
chore(deps): bump the golang-dependencies group with 4 updates
gaohan085/VideoServerGolang #401
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in /acceptance-tests/apps/postgresqlapp
cloudfoundry/csb-brokerpak-gcp #1504
Bump the dependencies group with 3 updates
mpapenbr/iracelog-graphql #190
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in /acceptance-tests/apps/postgresqlapp
cloudfoundry/csb-brokerpak-aws #2701
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
dot96gal/go-sqlc-postgres-sample #19
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in /reactor
chitoku-k/ejaculation-counter #984
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
modelcontextprotocol/registry #451
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
open-policy-agent/opa-control-plane #59
deps(go-server): Bump the minor-updates group in /server with 4 updates
Bump the go-dependencies group across 3 directories with 2 updates
riverqueue/riverui #424
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in /src/go
netdata/netdata #20950
chore(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
vancanhuit/url-shortener-web #20
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
pg-sharding/spqr #1548
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
cirello-io/pglock #179
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
adoublef/go #50
build(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in the all group across 1 directory
Proximyst/cov #61
chore(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in /backend
Fingertips18/fingertips18.github.io #480
chore(deps): bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6 in /postgres
gofiber/storage #1899
gomod: bump github.com/jackc/pgx/v5 from 5.7.4 to 5.7.6
bogdanserdinov/microservice #53
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
Bump github.com/jackc/pgx/v5 from 5.7.5 to 5.7.6
alphagov/router #587
build(deps): bump the other group with 40 updates
Hsn723/ct-monitor #1377
Package Details
| Name: | github.com/jackc/pgx/v5 | 
            
| Ecosystem: | go | 
| PURL Type: | golang | 
| Package URL: | pkg:golang/github.com/jackc/pgx/v5 | 
            
| JSON API: | View JSON | 
Security Advisories
Package Information
Package pgx is a PostgreSQL database driver. pgx provides a native PostgreSQL driver and can act as a database/sql driver. The native PostgreSQL interface is similar to the database/sql interface while providing better speed and access to PostgreSQL specific features. Use github.com/jackc/pgx/v5/stdlib to use pgx as a database/sql compatible driver. See that package's documentation for details. The primary way of establishing a connection is with pgx.Connect: The database connection string can be in URL or key/value format. Both PostgreSQL settings and pgx settings can be specified here. In addition, a config struct can be created by ParseConfig and modified before establishing the connection with ConnectConfig to configure settings such as tracing that cannot be configured with a connection string. *pgx.Conn represents a single connection to the database and is not concurrency safe. Use package github.com/jackc/pgx/v5/pgxpool for a concurrency safe connection pool. pgx implements Query in the familiar database/sql style. However, pgx provides generic functions such as CollectRows and ForEachRow that are a simpler and safer way of processing rows than manually calling defer rows.Close(), rows.Next(), rows.Scan, and rows.Err(). CollectRows can be used collect all returned rows into a slice. ForEachRow can be used to execute a callback function for every row. This is often easier than iterating over rows directly. pgx also implements QueryRow in the same style as database/sql. Use Exec to execute a query that does not return a result set. pgx uses the pgtype package to converting Go values to and from PostgreSQL values. It supports many PostgreSQL types directly and is customizable and extendable. User defined data types such as enums, domains, and composite types may require type registration. See that package's documentation for details. Transactions are started by calling Begin. The Tx returned from Begin also implements the Begin method. This can be used to implement pseudo nested transactions. These are internally implemented with savepoints. Use BeginTx to control the transaction mode. BeginTx also can be used to ensure a new transaction is created instead of a pseudo nested transaction. BeginFunc and BeginTxFunc are functions that begin a transaction, execute a function, and commit or rollback the transaction depending on the return value of the function. These can be simpler and less error prone to use. Prepared statements can be manually created with the Prepare method. However, this is rarely necessary because pgx includes an automatic statement cache by default. Queries run through the normal Query, QueryRow, and Exec functions are automatically prepared on first execution and the prepared statement is reused on subsequent executions. See ParseConfig for information on how to customize or disable the statement cache. Use CopyFrom to efficiently insert multiple rows at a time using the PostgreSQL copy protocol. CopyFrom accepts a CopyFromSource interface. If the data is already in a [][]any use CopyFromRows to wrap it in a CopyFromSource interface. Or implement CopyFromSource to avoid buffering the entire data set in memory. When you already have a typed array using CopyFromSlice can be more convenient. CopyFrom can be faster than an insert with as few as 5 rows. pgx can listen to the PostgreSQL notification system with the `Conn.WaitForNotification` method. It blocks until a notification is received or the context is canceled. pgx supports tracing by setting ConnConfig.Tracer. To combine several tracers you can use the multitracer.Tracer. In addition, the tracelog package provides the TraceLog type which lets a traditional logger act as a Tracer. For debug tracing of the actual PostgreSQL wire protocol messages see github.com/jackc/pgx/v5/pgproto3. github.com/jackc/pgx/v5/pgconn contains a lower level PostgreSQL driver roughly at the level of libpq. pgx.Conn is implemented on top of pgconn. The Conn.PgConn() method can be used to access this lower layer. By default pgx automatically uses prepared statements. Prepared statements are incompatible with PgBouncer. This can be disabled by setting a different QueryExecMode in ConnConfig.DefaultQueryExecMode.
| Repository: | https://github.com/jackc/pgx | 
| Homepage: | https://github.com/jackc/pgx | 
| Latest Release: | 
                    v5.7.5
                      6 months ago  | 
                
| Dependent Repos: | 4,965 | 
| Dependent Packages: | 3,079 | 
| Ranking: | Top 0.1177% by dependent repos Top 0.1141% by dependent pkgs |