2
0

chore: change module name after fork

This commit is contained in:
2024-01-15 15:26:58 +03:00
parent b7de418d46
commit 8418eab609
194 changed files with 370 additions and 371 deletions
+7 -7
View File
@@ -1,10 +1,9 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
title: ""
labels: bug
assignees: ''
assignees: ""
---
**Describe the bug**
@@ -23,7 +22,7 @@ import (
"log"
"os"
"github.com/jackc/pgx/v5"
"github.com/andoma-go/pgx/v5"
)
func main() {
@@ -46,9 +45,10 @@ A clear and concise description of what you expected to happen.
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/jackc/pgx/v[0-9]' go.mod` -> [e.g. v4.16.1]
- 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.
+33 -34
View File
@@ -1,5 +1,5 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/jackc/pgx/v5.svg)](https://pkg.go.dev/github.com/jackc/pgx/v5)
[![Build Status](https://github.com/jackc/pgx/actions/workflows/ci.yml/badge.svg)](https://github.com/jackc/pgx/actions/workflows/ci.yml)
[![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
@@ -22,7 +22,7 @@ import (
"fmt"
"os"
"github.com/jackc/pgx/v5"
"github.com/andoma-go/pgx/v5"
)
func main() {
@@ -50,25 +50,25 @@ See the [getting started guide](https://github.com/jackc/pgx/wiki/Getting-starte
## Features
* Support for approximately 70 different PostgreSQL types
* Automatic statement preparation and caching
* Batch queries
* Single-round trip query mode
* Full TLS connection control
* Binary format support for custom types (allows for much quicker encoding/decoding)
* `COPY` protocol support for faster bulk data loads
* Tracing and logging support
* Connection pool with after-connect hook for arbitrary connection setup
* `LISTEN` / `NOTIFY`
* Conversion of PostgreSQL arrays to Go slice mappings for integers, floats, and strings
* `hstore` support
* `json` and `jsonb` support
* Maps `inet` and `cidr` PostgreSQL types to `netip.Addr` and `netip.Prefix`
* Large object support
* NULL mapping to pointer to pointer
* Supports `database/sql.Scanner` and `database/sql/driver.Valuer` interfaces for custom types
* Notice response handling
* Simulated nested transactions with savepoints
- Support for approximately 70 different PostgreSQL types
- Automatic statement preparation and caching
- Batch queries
- Single-round trip query mode
- Full TLS connection control
- Binary format support for custom types (allows for much quicker encoding/decoding)
- `COPY` protocol support for faster bulk data loads
- Tracing and logging support
- Connection pool with after-connect hook for arbitrary connection setup
- `LISTEN` / `NOTIFY`
- Conversion of PostgreSQL arrays to Go slice mappings for integers, floats, and strings
- `hstore` support
- `json` and `jsonb` support
- Maps `inet` and `cidr` PostgreSQL types to `netip.Addr` and `netip.Prefix`
- Large object support
- NULL mapping to pointer to pointer
- Supports `database/sql.Scanner` and `database/sql/driver.Valuer` interfaces for custom types
- Notice response handling
- Simulated nested transactions with savepoints
## Choosing Between the pgx and database/sql Interfaces
@@ -118,26 +118,25 @@ pgerrcode contains constants for the PostgreSQL error codes.
## Adapters for 3rd Party Types
* [github.com/jackc/pgx-gofrs-uuid](https://github.com/jackc/pgx-gofrs-uuid)
* [github.com/jackc/pgx-shopspring-decimal](https://github.com/jackc/pgx-shopspring-decimal)
* [github.com/vgarvardt/pgx-google-uuid](https://github.com/vgarvardt/pgx-google-uuid)
- [github.com/jackc/pgx-gofrs-uuid](https://github.com/jackc/pgx-gofrs-uuid)
- [github.com/jackc/pgx-shopspring-decimal](https://github.com/jackc/pgx-shopspring-decimal)
- [github.com/vgarvardt/pgx-google-uuid](https://github.com/vgarvardt/pgx-google-uuid)
## Adapters for 3rd Party Tracers
* [https://github.com/jackhopner/pgx-xray-tracer](https://github.com/jackhopner/pgx-xray-tracer)
- [https://github.com/jackhopner/pgx-xray-tracer](https://github.com/jackhopner/pgx-xray-tracer)
## Adapters for 3rd Party Loggers
These adapters can be used with the tracelog package.
* [github.com/jackc/pgx-go-kit-log](https://github.com/jackc/pgx-go-kit-log)
* [github.com/jackc/pgx-log15](https://github.com/jackc/pgx-log15)
* [github.com/jackc/pgx-logrus](https://github.com/jackc/pgx-logrus)
* [github.com/jackc/pgx-zap](https://github.com/jackc/pgx-zap)
* [github.com/jackc/pgx-zerolog](https://github.com/jackc/pgx-zerolog)
* [github.com/mcosta74/pgx-slog](https://github.com/mcosta74/pgx-slog)
* [github.com/kataras/pgx-golog](https://github.com/kataras/pgx-golog)
- [github.com/jackc/pgx-go-kit-log](https://github.com/jackc/pgx-go-kit-log)
- [github.com/jackc/pgx-log15](https://github.com/jackc/pgx-log15)
- [github.com/jackc/pgx-logrus](https://github.com/jackc/pgx-logrus)
- [github.com/jackc/pgx-zap](https://github.com/jackc/pgx-zap)
- [github.com/jackc/pgx-zerolog](https://github.com/jackc/pgx-zerolog)
- [github.com/mcosta74/pgx-slog](https://github.com/mcosta74/pgx-slog)
- [github.com/kataras/pgx-golog](https://github.com/kataras/pgx-golog)
## 3rd Party Libraries with PGX Support
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/jackc/pgx/v5/pgconn"
"github.com/andoma-go/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/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/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/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)
+5 -5
View File
@@ -10,11 +10,11 @@ import (
"strings"
"time"
"github.com/jackc/pgx/v5/internal/anynil"
"github.com/jackc/pgx/v5/internal/sanitize"
"github.com/jackc/pgx/v5/internal/stmtcache"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgtype"
"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"
)
// 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/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"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"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"io"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/internal/pgio"
"github.com/andoma-go/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/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/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/jackc/pgx/v5/stdlib to use pgx as a database/sql compatible driver. See that package's documentation for
github.com/andoma-go/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/jackc/pgx/v5/pgxpool for a concurrency safe connection pool.
github.com/andoma-go/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/jackc/pgx/v5/pgproto3.
For debug tracing of the actual PostgreSQL wire protocol messages see github.com/andoma-go/pgx/v5/pgproto3.
Lower Level PostgreSQL Functionality
github.com/jackc/pgx/v5/pgconn contains a lower level PostgreSQL driver roughly at the level of libpq. pgx.Conn in
github.com/andoma-go/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/jackc/pgx/v5/pgxpool"
"github.com/andoma-go/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/jackc/pgx/examples/todo$ createdb todo
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ psql todo < structure.sql
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
Expanded display is used automatically.
Timing is on.
CREATE TABLE
Time: 6.363 ms
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ go build
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ export PGDATABASE=todo
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo list
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo add 'Learn Go'
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo list
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
1. Learn Go
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo update 1 'Learn more Go'
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo list
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
1. Learn more Go
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo remove 1
jack@hk-47~/dev/go/src/github.com/jackc/pgx/examples/todo$ ./todo list
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
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os"
"strconv"
"github.com/jackc/pgx/v5"
"github.com/andoma-go/pgx/v5"
)
var conn *pgx.Conn
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"net/http"
"os"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgxpool"
)
var db *pgxpool.Pool
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"database/sql/driver"
"fmt"
"github.com/jackc/pgx/v5/internal/anynil"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/internal/anynil"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgtype"
)
// ExtendedQueryBuilder is used to choose the parameter formats, to format the parameters and to choose the result
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/jackc/pgx/v5
module github.com/andoma-go/pgx/v5
go 1.19
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/assert"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package iobufpool_test
import (
"testing"
"github.com/jackc/pgx/v5/internal/iobufpool"
"github.com/andoma-go/pgx/v5/internal/iobufpool"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"io"
"reflect"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/pgx/v5/pgproto3"
)
type Step interface {
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/internal/pgmock"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/pgx/v5/internal/pgmock"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/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/jackc/pgx/v5/internal/sanitize"
"github.com/andoma-go/pgx/v5/internal/sanitize"
)
func TestNewQuery(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package stmtcache
import (
"container/list"
"github.com/jackc/pgx/v5/pgconn"
"github.com/andoma-go/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/jackc/pgx/v5/pgconn"
"github.com/andoma-go/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/jackc/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgconn"
)
// UnlimitedCache implements Cache with no capacity limit.
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestLargeObjects(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"context"
"fmt"
"github.com/jackc/pgx/v5/tracelog"
"github.com/andoma-go/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/jackc/pgx/v5"
"github.com/andoma-go/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/jackc/pgx/v5"
"github.com/andoma-go/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/jackc/pgx.
It is primarily intended to serve as the foundation for higher level libraries such as https://github.com/andoma-go/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/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/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/jackc/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -17,9 +17,9 @@ import (
"strings"
"time"
"github.com/andoma-go/pgx/v5/pgproto3"
"github.com/jackc/pgpassfile"
"github.com/jackc/pgservicefile"
"github.com/jackc/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/jackc/pgx/v5/pgconn"
"github.com/andoma-go/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/jackc/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgconn"
"github.com/andoma-go/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/jackc/pgx/v5/internal/iobufpool"
"github.com/andoma-go/pgx/v5/internal/iobufpool"
)
const (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgconn/internal/bgreader"
"github.com/andoma-go/pgx/v5/pgconn/internal/bgreader"
"github.com/stretchr/testify/require"
)
@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgconn/internal/ctxwatch"
"github.com/andoma-go/pgx/v5/pgconn/internal/ctxwatch"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/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/jackc/pgx/v5/internal/iobufpool"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/pgconn/internal/bgreader"
"github.com/jackc/pgx/v5/pgconn/internal/ctxwatch"
"github.com/jackc/pgx/v5/pgproto3"
"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"
)
const (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"testing"
"github.com/jackc/pgx/v5/pgconn"
"github.com/andoma-go/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/jackc/pgx/v5"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/internal/pgmock"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/jackc/pgx/v5/pgtype"
"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"
)
const pgbouncerConnStringEnvVar = "PGX_TEST_PGBOUNCER_CONN_STRING"
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/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/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type AuthenticationGSS struct{}
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type AuthenticationGSSContinue struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/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/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/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/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/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/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/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/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/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/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type BackendKeyData struct {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"io"
"testing"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/pgproto3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"encoding/json"
"fmt"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Bind struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
const cancelRequestCode = 80877102
+1 -1
View File
@@ -3,7 +3,7 @@ package pgproto3
import (
"io"
"github.com/jackc/pgx/v5/internal/iobufpool"
"github.com/andoma-go/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
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Close struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type CommandComplete struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type CopyBothResponse struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package pgproto3_test
import (
"testing"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/pgx/v5/pgproto3"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/hex"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type CopyData struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type CopyFail struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type CopyInResponse struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type CopyOutResponse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/hex"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type DataRow struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Describe struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"net"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/pgx/v5/pgproto3"
)
type PgFortuneBackend struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Execute struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"io"
"testing"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/pgx/v5/pgproto3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package pgproto3
import (
"encoding/binary"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type FunctionCall struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/hex"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type FunctionCallResponse struct {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"bytes"
"testing"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/pgproto3"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
const gssEncReqNumber = 80877104
+1 -1
View File
@@ -3,7 +3,7 @@ package pgproto3
import (
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type GSSResponse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type NotificationResponse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type ParameterDescription struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type ParameterStatus struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Parse struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type PasswordMessage struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Query struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
const (
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type SASLInitialResponse struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/hex"
"encoding/json"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type SASLResponse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
const sslRequestNumber = 80877103
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"fmt"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
const ProtocolVersionNumber = 196608 // 3.0
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/andoma-go/pgx/v5/pgconn"
"github.com/andoma-go/pgx/v5/pgproto3"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"unicode"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/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/jackc/pgx/v5/internal/anynil"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/anynil"
"github.com/andoma-go/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/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/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/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type BitsScanner interface {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEqBits(a any) func(any) bool {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestBoolCodec(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type BoxScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestBoxCodec(t *testing.T) {
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"fmt"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type CircleScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestCircleTranscode(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/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/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strconv"
"time"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type DateScanner interface {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/assert"
)

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