2
0

rename module

This commit is contained in:
2024-05-07 09:50:32 +03:00
parent da703e344f
commit ff905c39e4
193 changed files with 359 additions and 613 deletions
-54
View File
@@ -1,54 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: bug
assignees: ""
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
If possible, please provide runnable example such as:
```go
package main
import (
"context"
"log"
"os"
"github.com/andoma-go/pgx/v5"
)
func main() {
conn, err := pgx.Connect(context.Background(), os.Getenv("DATABASE_URL"))
if err != nil {
log.Fatal(err)
}
defer conn.Close(context.Background())
// Your code here...
}
```
Please run your example with the race detector enabled. For example, `go run -race main.go` or `go test -race`.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Actual behavior**
A clear and concise description of what actually happened.
**Version**
- Go: `$ go version` -> [e.g. go version go1.18.3 darwin/amd64]
- PostgreSQL: `$ psql --no-psqlrc --tuples-only -c 'select version()'` -> [e.g. PostgreSQL 14.4 on x86_64-apple-darwin21.5.0, compiled by Apple clang version 13.1.6 (clang-1316.0.21.2.5), 64-bit]
- pgx: `$ grep 'github.com/andoma-go/pgx/v[0-9]' go.mod` -> [e.g. v4.16.1]
**Additional context**
Add any other context about the problem here.
-20
View File
@@ -1,20 +0,0 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
-10
View File
@@ -1,10 +0,0 @@
---
name: Other issues
about: Any issue that is not a bug or a feature request
title: ''
labels: ''
assignees: ''
---
Please describe the issue in detail. If this is a question about how to use pgx please use discussions instead.
-156
View File
@@ -1,156 +0,0 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: Test
runs-on: ubuntu-22.04
strategy:
matrix:
go-version: ["1.21", "1.22"]
pg-version: [12, 13, 14, 15, 16, cockroachdb]
include:
- pg-version: 12
pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test"
pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test"
pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test"
pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test"
pgx-ssl-password: certpw
pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test"
- pg-version: 13
pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test"
pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test"
pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test"
pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test"
pgx-ssl-password: certpw
pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test"
- pg-version: 14
pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test"
pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test"
pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test"
pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test"
pgx-ssl-password: certpw
pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test"
- pg-version: 15
pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test"
pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test"
pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test"
pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test"
pgx-ssl-password: certpw
pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test"
- pg-version: 16
pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test"
pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test"
pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test"
pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test"
pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test"
pgx-ssl-password: certpw
pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test"
- pg-version: cockroachdb
pgx-test-database: "postgresql://root@127.0.0.1:26257/pgx_test?sslmode=disable&experimental_enable_temp_tables=on"
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Setup database server for testing
run: ci/setup_test.bash
env:
PGVERSION: ${{ matrix.pg-version }}
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
# with:
# ## limits ssh access and adds the ssh public key for the user which triggered the workflow
# limit-access-to-actor: true
# env:
# PGX_TEST_DATABASE: ${{ matrix.pgx-test-database }}
# PGX_TEST_UNIX_SOCKET_CONN_STRING: ${{ matrix.pgx-test-unix-socket-conn-string }}
# PGX_TEST_TCP_CONN_STRING: ${{ matrix.pgx-test-tcp-conn-string }}
# PGX_TEST_SCRAM_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-scram-password-conn-string }}
# PGX_TEST_MD5_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-md5-password-conn-string }}
# PGX_TEST_PLAIN_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-plain-password-conn-string }}
# PGX_TEST_TLS_CONN_STRING: ${{ matrix.pgx-test-tls-conn-string }}
# PGX_SSL_PASSWORD: ${{ matrix.pgx-ssl-password }}
# PGX_TEST_TLS_CLIENT_CONN_STRING: ${{ matrix.pgx-test-tls-client-conn-string }}
- name: Check formatting
run: |
gofmt -l -s -w .
git status
git diff --exit-code
- name: Test
# parallel testing is disabled because somehow parallel testing causes Github Actions to kill the runner.
run: go test -parallel=1 -race ./...
env:
PGX_TEST_DATABASE: ${{ matrix.pgx-test-database }}
PGX_TEST_UNIX_SOCKET_CONN_STRING: ${{ matrix.pgx-test-unix-socket-conn-string }}
PGX_TEST_TCP_CONN_STRING: ${{ matrix.pgx-test-tcp-conn-string }}
PGX_TEST_SCRAM_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-scram-password-conn-string }}
PGX_TEST_MD5_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-md5-password-conn-string }}
PGX_TEST_PLAIN_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-plain-password-conn-string }}
# TestConnectTLS fails. However, it succeeds if I connect to the CI server with upterm and run it. Give up on that test for now.
# PGX_TEST_TLS_CONN_STRING: ${{ matrix.pgx-test-tls-conn-string }}
PGX_SSL_PASSWORD: ${{ matrix.pgx-ssl-password }}
PGX_TEST_TLS_CLIENT_CONN_STRING: ${{ matrix.pgx-test-tls-client-conn-string }}
test-windows:
name: Test Windows
runs-on: windows-latest
strategy:
matrix:
go-version: ["1.21", "1.22"]
steps:
- name: Setup PostgreSQL
id: postgres
uses: ikalnytskyi/action-setup-postgres@v4
with:
database: pgx_test
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Initialize test database
run: |
psql -f testsetup/postgresql_setup.sql pgx_test
env:
PGSERVICE: ${{ steps.postgres.outputs.service-name }}
shell: bash
- name: Test
# parallel testing is disabled because somehow parallel testing causes Github Actions to kill the runner.
run: go test -parallel=1 -race ./...
env:
PGX_TEST_DATABASE: ${{ steps.postgres.outputs.connection-uri }}
+1 -4
View File
@@ -1,6 +1,3 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/andoma-go/pgx/v5.svg)](https://pkg.go.dev/github.com/andoma-go/pgx/v5)
[![Build Status](https://github.com/andoma-go/pgx/actions/workflows/ci.yml/badge.svg)](https://github.com/andoma-go/pgx/actions/workflows/ci.yml)
# pgx - PostgreSQL Driver and Toolkit
pgx is a pure Go driver and toolkit for PostgreSQL.
@@ -22,7 +19,7 @@ import (
"fmt"
"os"
"github.com/andoma-go/pgx/v5"
"git.company.lan/gopkg/pgx/v5"
)
func main() {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgconn"
)
// QueuedQuery is a query that has been queued for execution via a Batch.
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgxtest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -12,9 +12,9 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)
+5 -5
View File
@@ -10,11 +10,11 @@ import (
"strings"
"time"
"github.com/andoma-go/pgx/v5/internal/anynil"
"github.com/andoma-go/pgx/v5/internal/sanitize"
"github.com/andoma-go/pgx/v5/internal/stmtcache"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/internal/anynil"
"git.company.lan/gopkg/pgx/v5/internal/sanitize"
"git.company.lan/gopkg/pgx/v5/internal/stmtcache"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgtype"
)
// ConnConfig contains all the options used to establish a connection. It must be created by ParseConfig and
+4 -4
View File
@@ -9,10 +9,10 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/pgxtest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"io"
"github.com/andoma-go/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/pgconn"
)
// CopyFromRows returns a CopyFromSource interface over the provided rows slice
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+4 -4
View File
@@ -2,7 +2,7 @@
/*
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/andoma-go/pgx/v5/stdlib to use pgx as a database/sql compatible driver. See that package's documentation for
git.company.lan/gopkg/pgx/v5/stdlib to use pgx as a database/sql compatible driver. See that package's documentation for
details.
Establishing a Connection
@@ -18,7 +18,7 @@ here. In addition, a config struct can be created by [ParseConfig] and modified
Connection Pool
[*pgx.Conn] represents a single connection to the database and is not concurrency safe. Use package
github.com/andoma-go/pgx/v5/pgxpool for a concurrency safe connection pool.
git.company.lan/gopkg/pgx/v5/pgxpool for a concurrency safe connection pool.
Query Interface
@@ -178,11 +178,11 @@ pgx supports tracing by setting ConnConfig.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/andoma-go/pgx/v5/pgproto3.
For debug tracing of the actual PostgreSQL wire protocol messages see git.company.lan/gopkg/pgx/v5/pgproto3.
Lower Level PostgreSQL Functionality
github.com/andoma-go/pgx/v5/pgconn contains a lower level PostgreSQL driver roughly at the level of libpq. pgx.Conn in
git.company.lan/gopkg/pgx/v5/pgconn contains a lower level PostgreSQL driver roughly at the level of libpq. pgx.Conn in
implemented on top of pgconn. The Conn.PgConn() method can be used to access this lower layer.
PgBouncer
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"os"
"github.com/andoma-go/pgx/v5/pgxpool"
"git.company.lan/gopkg/pgx/v5/pgxpool"
)
var pool *pgxpool.Pool
+11 -11
View File
@@ -48,20 +48,20 @@ Or you can prefix the todo execution with the environment variables:
# Example Setup and Execution
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ createdb todo
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ psql todo < structure.sql
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ createdb todo
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ psql todo < structure.sql
Expanded display is used automatically.
Timing is on.
CREATE TABLE
Time: 6.363 ms
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ go build
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ export PGDATABASE=todo
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo add 'Learn Go'
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ go build
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ export PGDATABASE=todo
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo list
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo add 'Learn Go'
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo list
1. Learn Go
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo update 1 'Learn more Go'
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo update 1 'Learn more Go'
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo list
1. Learn more Go
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo remove 1
jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo remove 1
jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo list
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os"
"strconv"
"github.com/andoma-go/pgx/v5"
"git.company.lan/gopkg/pgx/v5"
)
var conn *pgx.Conn
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"net/http"
"os"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgxpool"
"git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgxpool"
)
var db *pgxpool.Pool
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"database/sql/driver"
"fmt"
"github.com/andoma-go/pgx/v5/internal/anynil"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/internal/anynil"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgtype"
)
// ExtendedQueryBuilder is used to choose the parameter formats, to format the parameters and to choose the result
+10 -10
View File
@@ -1,21 +1,21 @@
module github.com/andoma-go/pgx/v5
module git.company.lan/gopkg/pgx/v5
go 1.19
go 1.21.5
require (
github.com/andoma-go/pgpassfile v0.0.0-20240115130830-7bdd00f68544
github.com/andoma-go/pgservicefile v0.0.0-20240115131304-4a01ebf23c42
github.com/andoma-go/puddle/v2 v2.0.0-20240328142435-357666cb6fa1
github.com/stretchr/testify v1.8.1
golang.org/x/crypto v0.17.0
golang.org/x/text v0.14.0
git.company.lan/gopkg/pgpassfile v0.0.0-20240507062409-ef15a31d1757
git.company.lan/gopkg/pgservicefile v0.0.0-20240507063116-fb6b7c963773
git.company.lan/gopkg/puddle/v2 v2.0.0-20240507063929-f69f8d1b5c10
github.com/stretchr/testify v1.9.0
golang.org/x/crypto v0.23.0
golang.org/x/text v0.15.0
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/kr/pretty v0.3.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sync v0.7.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
+19 -30
View File
@@ -1,45 +1,34 @@
github.com/andoma-go/pgpassfile v0.0.0-20240115130830-7bdd00f68544 h1:zw0WuRyP2Awzl63MI2VwMXSM/CsNqwygHg/CbySE1ls=
github.com/andoma-go/pgpassfile v0.0.0-20240115130830-7bdd00f68544/go.mod h1:JWSeNzz3oUhysdQgq1OL4PyV3R4QW/KyPvqqEykyN88=
github.com/andoma-go/pgservicefile v0.0.0-20240115131304-4a01ebf23c42 h1:TpYPPFFHiqFDM0luTfDiHBdGSgYU+uloD+FaA87BBRk=
github.com/andoma-go/pgservicefile v0.0.0-20240115131304-4a01ebf23c42/go.mod h1:iRoNsjH6Wp9dCo0oiT1geVOjYusx6RUIdzCJNktFso0=
github.com/andoma-go/puddle/v2 v2.0.0-20240328142435-357666cb6fa1 h1:3/6Uu7EWnHeHAwZ9tfytqJy+1x8LTtYrsWGczhMJ4uc=
github.com/andoma-go/puddle/v2 v2.0.0-20240328142435-357666cb6fa1/go.mod h1:iWHUHOdNa1/WJ6MyJAZ5qeTI/sJMbjVK/Gw4JLjh4Dw=
git.company.lan/gopkg/pgpassfile v0.0.0-20240507062409-ef15a31d1757 h1:ppdtmz274csxD/e/OBE0D3KPpXagkRQ6iCdqeEM4ZLA=
git.company.lan/gopkg/pgpassfile v0.0.0-20240507062409-ef15a31d1757/go.mod h1:kpHg8Jx3XkEuTJVmHZc3DJxhxcFTOPWR1CKwiWcTTFU=
git.company.lan/gopkg/pgservicefile v0.0.0-20240507063116-fb6b7c963773 h1:Hraz8dWZhKrDtNTdxiURfd3FTzZZEaSuDQtKQnxOMwc=
git.company.lan/gopkg/pgservicefile v0.0.0-20240507063116-fb6b7c963773/go.mod h1:a3bW75VIG851FeyzQyckg/mTx2QEz39arTGA01+t/R0=
git.company.lan/gopkg/puddle/v2 v2.0.0-20240507063929-f69f8d1b5c10 h1:Jka/8bWLsKGwbmFkkKDBXao8hi+/5avHLcaqhiB1tNY=
git.company.lan/gopkg/puddle/v2 v2.0.0-20240507063929-f69f8d1b5c10/go.mod h1:bDYKrBPX0qo3VPwRAcBrQ9hlu2r6/TEHpU0xxkvoX14=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI=
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk=
golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package iobufpool_test
import (
"testing"
"github.com/andoma-go/pgx/v5/internal/iobufpool"
"git.company.lan/gopkg/pgx/v5/internal/iobufpool"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"io"
"reflect"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgproto3"
)
type Step interface {
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5/internal/pgmock"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/internal/pgmock"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5/internal/sanitize"
"git.company.lan/gopkg/pgx/v5/internal/sanitize"
)
func TestNewQuery(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package stmtcache
import (
"container/list"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgconn"
)
// LRUCache implements Cache with a Least Recently Used (LRU) cache.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"crypto/sha256"
"encoding/hex"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgconn"
)
// StatementName returns a statement name that will be stable for sql across multiple connections and program
+1 -1
View File
@@ -3,7 +3,7 @@ package stmtcache
import (
"math"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgconn"
)
// UnlimitedCache implements Cache with no capacity limit.
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgxtest"
)
func TestLargeObjects(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/andoma-go/pgx/v5/tracelog"
"git.company.lan/gopkg/pgx/v5/tracelog"
)
// TestingLogger interface defines the subset of testing.TB methods used by this
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/andoma-go/pgx/v5"
"git.company.lan/gopkg/pgx/v5"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"os"
"testing"
"github.com/andoma-go/pgx/v5"
"git.company.lan/gopkg/pgx/v5"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -1,7 +1,7 @@
# pgconn
Package pgconn is a low-level PostgreSQL database driver. It operates at nearly the same level as the C library libpq.
It is primarily intended to serve as the foundation for higher level libraries such as https://github.com/andoma-go/pgx.
It is primarily intended to serve as the foundation for higher level libraries such as https://git.company.lan/gopkg/pgx.
Applications should handle normal queries with a higher level library and only use pgconn directly when required for
low-level access to PostgreSQL functionality.
+1 -1
View File
@@ -22,7 +22,7 @@ import (
"fmt"
"strconv"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/text/secure/precis"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgconn"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -17,9 +17,9 @@ import (
"strings"
"time"
"github.com/andoma-go/pgpassfile"
"github.com/andoma-go/pgservicefile"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgpassfile"
"git.company.lan/gopkg/pgservicefile"
"git.company.lan/gopkg/pgx/v5/pgproto3"
)
type AfterConnectFunc func(ctx context.Context, pgconn *PgConn) error
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgconn"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package pgconn_test
import (
"testing"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgconn"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgconn"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"io"
"sync"
"github.com/andoma-go/pgx/v5/internal/iobufpool"
"git.company.lan/gopkg/pgx/v5/internal/iobufpool"
)
const (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5/pgconn/internal/bgreader"
"git.company.lan/gopkg/pgx/v5/pgconn/internal/bgreader"
"github.com/stretchr/testify/require"
)
@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5/pgconn/internal/ctxwatch"
"git.company.lan/gopkg/pgx/v5/pgconn/internal/ctxwatch"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgproto3"
)
// NewGSSFunc creates a GSS authentication provider, for use with
+5 -5
View File
@@ -16,11 +16,11 @@ import (
"sync"
"time"
"github.com/andoma-go/pgx/v5/internal/iobufpool"
"github.com/andoma-go/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/pgconn/internal/bgreader"
"github.com/andoma-go/pgx/v5/pgconn/internal/ctxwatch"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/internal/iobufpool"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/pgconn/internal/bgreader"
"git.company.lan/gopkg/pgx/v5/pgconn/internal/ctxwatch"
"git.company.lan/gopkg/pgx/v5/pgproto3"
)
const (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"testing"
"github.com/andoma-go/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgconn"
"github.com/stretchr/testify/require"
)
+6 -6
View File
@@ -20,12 +20,12 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgmock"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgproto3"
"github.com/andoma-go/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgmock"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgtype"
)
const pgbouncerConnStringEnvVar = "PGX_TEST_PGBOUNCER_CONN_STRING"
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// AuthenticationCleartextPassword is a message sent from the backend indicating that a clear-text password is required.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type AuthenticationGSS struct{}
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type AuthenticationGSSContinue struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// AuthenticationMD5Password is a message sent from the backend indicating that an MD5 hashed password is required.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// AuthenticationOk is a message sent from the backend indicating that authentication was successful.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// AuthenticationSASL is a message sent from the backend indicating that SASL authentication is required.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// AuthenticationSASLContinue is a message sent from the backend containing a SASL challenge.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// AuthenticationSASLFinal is a message sent from the backend indicating a SASL authentication has completed.
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type BackendKeyData struct {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"io"
"testing"
"github.com/andoma-go/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"fmt"
"math"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type Bind struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package pgproto3_test
import (
"testing"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
const cancelRequestCode = 80877102
+1 -1
View File
@@ -3,7 +3,7 @@ package pgproto3
import (
"io"
"github.com/andoma-go/pgx/v5/internal/iobufpool"
"git.company.lan/gopkg/pgx/v5/internal/iobufpool"
)
// chunkReader is a io.Reader wrapper that minimizes IO reads and memory allocations. It allocates memory in chunks and
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"math"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type CopyBothResponse struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package pgproto3_test
import (
"testing"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"math"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type CopyInResponse struct {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"math"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type CopyOutResponse struct {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"math"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type DataRow struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"net"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgproto3"
)
type PgFortuneBackend struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type Execute struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"io"
"testing"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
"math"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type FunctionCall struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/hex"
"encoding/json"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type FunctionCallResponse struct {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"bytes"
"testing"
"github.com/andoma-go/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
const gssEncReqNumber = 80877104
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type NotificationResponse struct {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"math"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type ParameterDescription struct {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"math"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type Parse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// maxMessageBodyLen is the maximum length of a message body in bytes. See PG_LARGE_MESSAGE_LIMIT in the PostgreSQL
+1 -1
View File
@@ -3,7 +3,7 @@ package pgproto3_test
import (
"testing"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"math"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
const (
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type SASLInitialResponse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
const sslRequestNumber = 80877103
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"fmt"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
const ProtocolVersionNumber = 196608 // 3.0
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgproto3"
"git.company.lan/gopkg/pgx/v5/pgconn"
"git.company.lan/gopkg/pgx/v5/pgproto3"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"unicode"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// Information on the internals of PostgreSQL arrays can be found in
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"reflect"
"github.com/andoma-go/pgx/v5/internal/anynil"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/anynil"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// ArrayGetter is a type that can be converted into a PostgreSQL array.
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"strings"
"testing"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
pgx "git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/pgxtest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"fmt"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type BitsScanner interface {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"context"
"testing"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/pgxtest"
)
func isExpectedEqBits(a any) func(any) bool {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/pgxtest"
)
func TestBoolCodec(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type BoxScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/pgxtest"
)
func TestBoxCodec(t *testing.T) {
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"fmt"
"testing"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
pgx "git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type CircleScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/pgxtest"
)
func TestCircleTranscode(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
// CompositeIndexGetter is a type accessed by index that can be converted into a PostgreSQL composite.
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"fmt"
"testing"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
pgx "git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strconv"
"time"
"github.com/andoma-go/pgx/v5/internal/pgio"
"git.company.lan/gopkg/pgx/v5/internal/pgio"
)
type DateScanner interface {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"git.company.lan/gopkg/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5/pgxtest"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"testing"
pgx "github.com/andoma-go/pgx/v5"
pgx "git.company.lan/gopkg/pgx/v5"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os"
"time"
"github.com/andoma-go/pgx/v5"
"git.company.lan/gopkg/pgx/v5"
)
type Player struct {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"fmt"
"os"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"git.company.lan/gopkg/pgx/v5"
"git.company.lan/gopkg/pgx/v5/pgtype"
)
// Point represents a point that may be null.

Some files were not shown because too many files have changed in this diff Show More