chore: change module name after fork
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
---
|
---
|
||||||
name: Bug report
|
name: Bug report
|
||||||
about: Create a report to help us improve
|
about: Create a report to help us improve
|
||||||
title: ''
|
title: ""
|
||||||
labels: bug
|
labels: bug
|
||||||
assignees: ''
|
assignees: ""
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
**Describe the bug**
|
**Describe the bug**
|
||||||
@@ -23,7 +22,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
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.
|
A clear and concise description of what actually happened.
|
||||||
|
|
||||||
**Version**
|
**Version**
|
||||||
|
|
||||||
- Go: `$ go version` -> [e.g. go version go1.18.3 darwin/amd64]
|
- 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]
|
- 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]
|
- pgx: `$ grep 'github.com/andoma-go/pgx/v[0-9]' go.mod` -> [e.g. v4.16.1]
|
||||||
|
|
||||||
**Additional context**
|
**Additional context**
|
||||||
Add any other context about the problem here.
|
Add any other context about the problem here.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
[](https://pkg.go.dev/github.com/jackc/pgx/v5)
|
[](https://pkg.go.dev/github.com/andoma-go/pgx/v5)
|
||||||
[](https://github.com/jackc/pgx/actions/workflows/ci.yml)
|
[](https://github.com/andoma-go/pgx/actions/workflows/ci.yml)
|
||||||
|
|
||||||
# pgx - PostgreSQL Driver and Toolkit
|
# pgx - PostgreSQL Driver and Toolkit
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@@ -50,25 +50,25 @@ See the [getting started guide](https://github.com/jackc/pgx/wiki/Getting-starte
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* Support for approximately 70 different PostgreSQL types
|
- Support for approximately 70 different PostgreSQL types
|
||||||
* Automatic statement preparation and caching
|
- Automatic statement preparation and caching
|
||||||
* Batch queries
|
- Batch queries
|
||||||
* Single-round trip query mode
|
- Single-round trip query mode
|
||||||
* Full TLS connection control
|
- Full TLS connection control
|
||||||
* Binary format support for custom types (allows for much quicker encoding/decoding)
|
- Binary format support for custom types (allows for much quicker encoding/decoding)
|
||||||
* `COPY` protocol support for faster bulk data loads
|
- `COPY` protocol support for faster bulk data loads
|
||||||
* Tracing and logging support
|
- Tracing and logging support
|
||||||
* Connection pool with after-connect hook for arbitrary connection setup
|
- Connection pool with after-connect hook for arbitrary connection setup
|
||||||
* `LISTEN` / `NOTIFY`
|
- `LISTEN` / `NOTIFY`
|
||||||
* Conversion of PostgreSQL arrays to Go slice mappings for integers, floats, and strings
|
- Conversion of PostgreSQL arrays to Go slice mappings for integers, floats, and strings
|
||||||
* `hstore` support
|
- `hstore` support
|
||||||
* `json` and `jsonb` support
|
- `json` and `jsonb` support
|
||||||
* Maps `inet` and `cidr` PostgreSQL types to `netip.Addr` and `netip.Prefix`
|
- Maps `inet` and `cidr` PostgreSQL types to `netip.Addr` and `netip.Prefix`
|
||||||
* Large object support
|
- Large object support
|
||||||
* NULL mapping to pointer to pointer
|
- NULL mapping to pointer to pointer
|
||||||
* Supports `database/sql.Scanner` and `database/sql/driver.Valuer` interfaces for custom types
|
- Supports `database/sql.Scanner` and `database/sql/driver.Valuer` interfaces for custom types
|
||||||
* Notice response handling
|
- Notice response handling
|
||||||
* Simulated nested transactions with savepoints
|
- Simulated nested transactions with savepoints
|
||||||
|
|
||||||
## Choosing Between the pgx and database/sql Interfaces
|
## 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
|
## Adapters for 3rd Party Types
|
||||||
|
|
||||||
* [github.com/jackc/pgx-gofrs-uuid](https://github.com/jackc/pgx-gofrs-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/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/vgarvardt/pgx-google-uuid](https://github.com/vgarvardt/pgx-google-uuid)
|
||||||
|
|
||||||
|
|
||||||
## Adapters for 3rd Party Tracers
|
## 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
|
## Adapters for 3rd Party Loggers
|
||||||
|
|
||||||
These adapters can be used with the tracelog package.
|
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-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-log15](https://github.com/jackc/pgx-log15)
|
||||||
* [github.com/jackc/pgx-logrus](https://github.com/jackc/pgx-logrus)
|
- [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-zap](https://github.com/jackc/pgx-zap)
|
||||||
* [github.com/jackc/pgx-zerolog](https://github.com/jackc/pgx-zerolog)
|
- [github.com/jackc/pgx-zerolog](https://github.com/jackc/pgx-zerolog)
|
||||||
* [github.com/mcosta74/pgx-slog](https://github.com/mcosta74/pgx-slog)
|
- [github.com/mcosta74/pgx-slog](https://github.com/mcosta74/pgx-slog)
|
||||||
* [github.com/kataras/pgx-golog](https://github.com/kataras/pgx-golog)
|
- [github.com/kataras/pgx-golog](https://github.com/kataras/pgx-golog)
|
||||||
|
|
||||||
## 3rd Party Libraries with PGX Support
|
## 3rd Party Libraries with PGX Support
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"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.
|
// QueuedQuery is a query that has been queued for execution via a Batch.
|
||||||
|
|||||||
+3
-3
@@ -8,9 +8,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
+3
-3
@@ -12,9 +12,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -10,11 +10,11 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/anynil"
|
"github.com/andoma-go/pgx/v5/internal/anynil"
|
||||||
"github.com/jackc/pgx/v5/internal/sanitize"
|
"github.com/andoma-go/pgx/v5/internal/sanitize"
|
||||||
"github.com/jackc/pgx/v5/internal/stmtcache"
|
"github.com/andoma-go/pgx/v5/internal/stmtcache"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ConnConfig contains all the options used to establish a connection. It must be created by ParseConfig and
|
// ConnConfig contains all the options used to establish a connection. It must be created by ParseConfig and
|
||||||
|
|||||||
+4
-4
@@ -9,10 +9,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
+2
-2
@@ -6,8 +6,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CopyFromRows returns a CopyFromSource interface over the provided rows slice
|
// CopyFromRows returns a CopyFromSource interface over the provided rows slice
|
||||||
|
|||||||
+3
-3
@@ -8,9 +8,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
pgx provides a native PostgreSQL driver and can act as a database/sql driver. The native PostgreSQL interface is similar
|
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
|
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.
|
details.
|
||||||
|
|
||||||
Establishing a Connection
|
Establishing a Connection
|
||||||
@@ -18,7 +18,7 @@ here. In addition, a config struct can be created by [ParseConfig] and modified
|
|||||||
Connection Pool
|
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.
|
github.com/andoma-go/pgx/v5/pgxpool for a concurrency safe connection pool.
|
||||||
|
|
||||||
Query Interface
|
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.
|
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
|
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.
|
implemented on top of pgconn. The Conn.PgConn() method can be used to access this lower layer.
|
||||||
|
|
||||||
PgBouncer
|
PgBouncer
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgxpool"
|
"github.com/andoma-go/pgx/v5/pgxpool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var pool *pgxpool.Pool
|
var pool *pgxpool.Pool
|
||||||
|
|||||||
+11
-11
@@ -48,20 +48,20 @@ Or you can prefix the todo execution with the environment variables:
|
|||||||
|
|
||||||
# Example Setup and Execution
|
# 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/andoma-go/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$ psql todo < structure.sql
|
||||||
Expanded display is used automatically.
|
Expanded display is used automatically.
|
||||||
Timing is on.
|
Timing is on.
|
||||||
CREATE TABLE
|
CREATE TABLE
|
||||||
Time: 6.363 ms
|
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/andoma-go/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/andoma-go/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/andoma-go/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/andoma-go/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$ ./todo list
|
||||||
1. Learn Go
|
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/andoma-go/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 list
|
||||||
1. Learn more Go
|
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/andoma-go/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 list
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
)
|
)
|
||||||
|
|
||||||
var conn *pgx.Conn
|
var conn *pgx.Conn
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgxpool"
|
"github.com/andoma-go/pgx/v5/pgxpool"
|
||||||
)
|
)
|
||||||
|
|
||||||
var db *pgxpool.Pool
|
var db *pgxpool.Pool
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"database/sql/driver"
|
"database/sql/driver"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/anynil"
|
"github.com/andoma-go/pgx/v5/internal/anynil"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ExtendedQueryBuilder is used to choose the parameter formats, to format the parameters and to choose the result
|
// ExtendedQueryBuilder is used to choose the parameter formats, to format the parameters and to choose the result
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module github.com/jackc/pgx/v5
|
module github.com/andoma-go/pgx/v5
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -7,9 +7,9 @@ import (
|
|||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package iobufpool_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/iobufpool"
|
"github.com/andoma-go/pgx/v5/internal/iobufpool"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Step interface {
|
type Step interface {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgmock"
|
"github.com/andoma-go/pgx/v5/internal/pgmock"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/sanitize"
|
"github.com/andoma-go/pgx/v5/internal/sanitize"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestNewQuery(t *testing.T) {
|
func TestNewQuery(t *testing.T) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package stmtcache
|
|||||||
import (
|
import (
|
||||||
"container/list"
|
"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.
|
// LRUCache implements Cache with a Least Recently Used (LRU) cache.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"crypto/sha256"
|
"crypto/sha256"
|
||||||
"encoding/hex"
|
"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
|
// StatementName returns a statement name that will be stable for sql across multiple connections and program
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package stmtcache
|
|||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
)
|
)
|
||||||
|
|
||||||
// UnlimitedCache implements Cache with no capacity limit.
|
// UnlimitedCache implements Cache with no capacity limit.
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLargeObjects(t *testing.T) {
|
func TestLargeObjects(t *testing.T) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"fmt"
|
"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
|
// TestingLogger interface defines the subset of testing.TB methods used by this
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
# pgconn
|
# pgconn
|
||||||
|
|
||||||
Package pgconn is a low-level PostgreSQL database driver. It operates at nearly the same level as the C library libpq.
|
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
|
Applications should handle normal queries with a higher level library and only use pgconn directly when required for
|
||||||
low-level access to PostgreSQL functionality.
|
low-level access to PostgreSQL functionality.
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
"golang.org/x/crypto/pbkdf2"
|
"golang.org/x/crypto/pbkdf2"
|
||||||
"golang.org/x/text/secure/precis"
|
"golang.org/x/text/secure/precis"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -17,9 +17,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
"github.com/jackc/pgpassfile"
|
"github.com/jackc/pgpassfile"
|
||||||
"github.com/jackc/pgservicefile"
|
"github.com/jackc/pgservicefile"
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type AfterConnectFunc func(ctx context.Context, pgconn *PgConn) error
|
type AfterConnectFunc func(ctx context.Context, pgconn *PgConn) error
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package pgconn_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/iobufpool"
|
"github.com/andoma-go/pgx/v5/internal/iobufpool"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgconn/internal/bgreader"
|
"github.com/andoma-go/pgx/v5/pgconn/internal/bgreader"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgconn/internal/ctxwatch"
|
"github.com/andoma-go/pgx/v5/pgconn/internal/ctxwatch"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewGSSFunc creates a GSS authentication provider, for use with
|
// NewGSSFunc creates a GSS authentication provider, for use with
|
||||||
|
|||||||
+5
-5
@@ -16,11 +16,11 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/iobufpool"
|
"github.com/andoma-go/pgx/v5/internal/iobufpool"
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
"github.com/jackc/pgx/v5/pgconn/internal/bgreader"
|
"github.com/andoma-go/pgx/v5/pgconn/internal/bgreader"
|
||||||
"github.com/jackc/pgx/v5/pgconn/internal/ctxwatch"
|
"github.com/andoma-go/pgx/v5/pgconn/internal/ctxwatch"
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -20,12 +20,12 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
"github.com/jackc/pgx/v5/internal/pgmock"
|
"github.com/andoma-go/pgx/v5/internal/pgmock"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
)
|
)
|
||||||
|
|
||||||
const pgbouncerConnStringEnvVar = "PGX_TEST_PGBOUNCER_CONN_STRING"
|
const pgbouncerConnStringEnvVar = "PGX_TEST_PGBOUNCER_CONN_STRING"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"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.
|
// AuthenticationCleartextPassword is a message sent from the backend indicating that a clear-text password is required.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AuthenticationGSS struct{}
|
type AuthenticationGSS struct{}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AuthenticationGSSContinue struct {
|
type AuthenticationGSSContinue struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"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.
|
// AuthenticationMD5Password is a message sent from the backend indicating that an MD5 hashed password is required.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"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.
|
// AuthenticationOk is a message sent from the backend indicating that authentication was successful.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"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.
|
// AuthenticationSASL is a message sent from the backend indicating that SASL authentication is required.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"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.
|
// AuthenticationSASLContinue is a message sent from the backend containing a SASL challenge.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"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.
|
// AuthenticationSASLFinal is a message sent from the backend indicating a SASL authentication has completed.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BackendKeyData struct {
|
type BackendKeyData struct {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Bind struct {
|
type Bind struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const cancelRequestCode = 80877102
|
const cancelRequestCode = 80877102
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package pgproto3
|
|||||||
import (
|
import (
|
||||||
"io"
|
"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
|
// chunkReader is a io.Reader wrapper that minimizes IO reads and memory allocations. It allocates memory in chunks and
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Close struct {
|
type Close struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CommandComplete struct {
|
type CommandComplete struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CopyBothResponse struct {
|
type CopyBothResponse struct {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package pgproto3_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CopyData struct {
|
type CopyData struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CopyFail struct {
|
type CopyFail struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CopyInResponse struct {
|
type CopyInResponse struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CopyOutResponse struct {
|
type CopyOutResponse struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DataRow struct {
|
type DataRow struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Describe struct {
|
type Describe struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PgFortuneBackend struct {
|
type PgFortuneBackend struct {
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Execute struct {
|
type Execute struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package pgproto3
|
|||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FunctionCall struct {
|
type FunctionCall struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FunctionCallResponse struct {
|
type FunctionCallResponse struct {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const gssEncReqNumber = 80877104
|
const gssEncReqNumber = 80877104
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package pgproto3
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type GSSResponse struct {
|
type GSSResponse struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NotificationResponse struct {
|
type NotificationResponse struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ParameterDescription struct {
|
type ParameterDescription struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ParameterStatus struct {
|
type ParameterStatus struct {
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Parse struct {
|
type Parse struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PasswordMessage struct {
|
type PasswordMessage struct {
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Query struct {
|
type Query struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SASLInitialResponse struct {
|
type SASLInitialResponse struct {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SASLResponse struct {
|
type SASLResponse struct {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const sslRequestNumber = 80877103
|
const sslRequestNumber = 80877103
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ProtocolVersionNumber = 196608 // 3.0
|
const ProtocolVersionNumber = 196608 // 3.0
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/andoma-go/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgproto3"
|
"github.com/andoma-go/pgx/v5/pgproto3"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"unicode"
|
"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
|
// Information on the internals of PostgreSQL arrays can be found in
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/anynil"
|
"github.com/andoma-go/pgx/v5/internal/anynil"
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
// ArrayGetter is a type that can be converted into a PostgreSQL array.
|
// ArrayGetter is a type that can be converted into a PostgreSQL array.
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
pgx "github.com/jackc/pgx/v5"
|
pgx "github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BitsScanner interface {
|
type BitsScanner interface {
|
||||||
|
|||||||
+2
-2
@@ -5,8 +5,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
)
|
)
|
||||||
|
|
||||||
func isExpectedEqBits(a any) func(any) bool {
|
func isExpectedEqBits(a any) func(any) bool {
|
||||||
|
|||||||
+2
-2
@@ -4,8 +4,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBoolCodec(t *testing.T) {
|
func TestBoolCodec(t *testing.T) {
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type BoxScanner interface {
|
type BoxScanner interface {
|
||||||
|
|||||||
+2
-2
@@ -4,8 +4,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBoxCodec(t *testing.T) {
|
func TestBoxCodec(t *testing.T) {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
pgx "github.com/jackc/pgx/v5"
|
pgx "github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CircleScanner interface {
|
type CircleScanner interface {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCircleTranscode(t *testing.T) {
|
func TestCircleTranscode(t *testing.T) {
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"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.
|
// CompositeIndexGetter is a type accessed by index that can be converted into a PostgreSQL composite.
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
pgx "github.com/jackc/pgx/v5"
|
pgx "github.com/andoma-go/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/internal/pgio"
|
"github.com/andoma-go/pgx/v5/internal/pgio"
|
||||||
)
|
)
|
||||||
|
|
||||||
type DateScanner interface {
|
type DateScanner interface {
|
||||||
|
|||||||
+2
-2
@@ -5,8 +5,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5/pgtype"
|
"github.com/andoma-go/pgx/v5/pgtype"
|
||||||
"github.com/jackc/pgx/v5/pgxtest"
|
"github.com/andoma-go/pgx/v5/pgxtest"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user