diff options
| author | 2023-08-16 16:10:13 +0100 | |
|---|---|---|
| committer | 2023-08-21 17:17:31 +0200 | |
| commit | 688ea88bbbfc8ead5a205b3e111bef224767f607 (patch) | |
| tree | e2b0e3c456b1a2b91cd783383102bc609412f56a /vendor/github.com/jackc/pgx/v5/doc.go | |
| parent | [chore]: Bump github.com/abema/go-mp4 from 0.12.0 to 0.13.0 (#2113) (diff) | |
| download | gotosocial-688ea88bbbfc8ead5a205b3e111bef224767f607.tar.xz | |
[chore]: Bump github.com/jackc/pgx/v5 from 5.4.2 to 5.4.3 (#2112)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/jackc/pgx/v5/doc.go')
| -rw-r--r-- | vendor/github.com/jackc/pgx/v5/doc.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/jackc/pgx/v5/doc.go b/vendor/github.com/jackc/pgx/v5/doc.go index 0db8cbb14..7486f42c5 100644 --- a/vendor/github.com/jackc/pgx/v5/doc.go +++ b/vendor/github.com/jackc/pgx/v5/doc.go @@ -7,17 +7,17 @@ details. Establishing a Connection -The primary way of establishing a connection is with `pgx.Connect`. +The primary way of establishing a connection is with [pgx.Connect]: conn, err := pgx.Connect(context.Background(), os.Getenv("DATABASE_URL")) The database connection string can be in URL or DSN 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. +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. Connection Pool -`*pgx.Conn` represents a single connection to the database and is not concurrency safe. Use package +[*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. Query Interface |
