Skip to content

Commit

Permalink
Bump module version to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
jackc committed Dec 11, 2021
1 parent 390bd79 commit 72cc95e
Show file tree
Hide file tree
Showing 151 changed files with 287 additions and 287 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![](https://godoc.org/github.com/jackc/pgx?status.svg)](https://pkg.go.dev/github.com/jackc/pgx/v4)
[![](https://godoc.org/github.com/jackc/pgx?status.svg)](https://pkg.go.dev/github.com/jackc/pgx/v5)
[![Build Status](https://travis-ci.org/jackc/pgx.svg)](https://travis-ci.org/jackc/pgx)

# pgx - PostgreSQL Driver and Toolkit
Expand All @@ -25,7 +25,7 @@ import (
"fmt"
"os"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

func main() {
Expand Down Expand Up @@ -164,11 +164,11 @@ from pgx for lower-level control.

`pgconn` is a lower-level PostgreSQL database driver that operates at nearly the same level as the C library `libpq`.

### [github.com/jackc/pgx/v4/pgxpool](https://github.com/jackc/pgx/tree/master/pgxpool)
### [github.com/jackc/pgx/v5/pgxpool](https://github.com/jackc/pgx/tree/master/pgxpool)

`pgxpool` is a connection pool for pgx. pgx is entirely decoupled from its default pool implementation. This means that pgx can be used with a different pool or without any pool at all.

### [github.com/jackc/pgx/v4/stdlib](https://github.com/jackc/pgx/tree/master/stdlib)
### [github.com/jackc/pgx/v5/stdlib](https://github.com/jackc/pgx/tree/master/stdlib)

This is a `database/sql` compatibility layer for pgx. pgx can be used as a normal `database/sql` driver, but at any time, the native interface can be acquired for more performance or PostgreSQL specific functionality.

Expand Down
2 changes: 1 addition & 1 deletion batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"errors"

"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"
)

type batchItem struct {
Expand Down
6 changes: 3 additions & 3 deletions batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"testing"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v4/pgconn/stmtcache"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgconn/stmtcache"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
8 changes: 4 additions & 4 deletions bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v4/pgconn/stmtcache"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgconn/stmtcache"
"github.com/jackc/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)

Expand Down
8 changes: 4 additions & 4 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"time"

"github.com/jackc/pgproto3/v2"
"github.com/jackc/pgx/v4/internal/sanitize"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v4/pgconn/stmtcache"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/internal/sanitize"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgconn/stmtcache"
"github.com/jackc/pgx/v5/pgtype"
)

// ConnConfig contains all the options used to establish a connection. It must be created by ParseConfig and
Expand Down
8 changes: 4 additions & 4 deletions conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v4/pgconn/stmtcache"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgconn/stmtcache"
"github.com/jackc/pgx/v5/pgtype"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion copy_from.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/jackc/pgio"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"
)

// CopyFromRows returns a CopyFromSource interface over the provided rows slice
Expand Down
4 changes: 2 additions & 2 deletions copy_from_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/stretchr/testify/require"
)

Expand Down
4 changes: 2 additions & 2 deletions example_custom_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"regexp"
"strconv"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
)

var pointRegexp *regexp.Regexp = regexp.MustCompile(`^\((.*),(.*)\)$`)
Expand Down
2 changes: 1 addition & 1 deletion example_json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

func Example_JSON() {
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"os"

"github.com/jackc/pgx/v4/pgxpool"
"github.com/jackc/pgx/v5/pgxpool"
)

var pool *pgxpool.Pool
Expand Down
2 changes: 1 addition & 1 deletion examples/todo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"strconv"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

var conn *pgx.Conn
Expand Down
6 changes: 3 additions & 3 deletions examples/url_shortener/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"net/http"
"os"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/log/log15adapter"
"github.com/jackc/pgx/v4/pgxpool"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/log/log15adapter"
"github.com/jackc/pgx/v5/pgxpool"
log "gopkg.in/inconshreveable/log15.v2"
)

Expand Down
2 changes: 1 addition & 1 deletion extended_query_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"reflect"

"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)

type extendedQueryBuilder struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/jackc/pgx/v4
module github.com/jackc/pgx/v5

go 1.13

Expand Down
4 changes: 2 additions & 2 deletions helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/stretchr/testify/assert"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/sanitize/sanitize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4/internal/sanitize"
"github.com/jackc/pgx/v5/internal/sanitize"
)

func TestNewQuery(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions large_objects_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
)

func TestLargeObjects(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion log/kitlogadapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/go-kit/log"
kitlevel "github.com/go-kit/log/level"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

type Logger struct {
Expand Down
2 changes: 1 addition & 1 deletion log/log15adapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package log15adapter
import (
"context"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

// Log15Logger interface defines the subset of
Expand Down
2 changes: 1 addition & 1 deletion log/logrusadapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package logrusadapter
import (
"context"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion log/testingadapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"context"
"fmt"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
)

// TestingLogger interface defines the subset of testing.TB methods used by this
Expand Down
2 changes: 1 addition & 1 deletion log/zapadapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zapadapter
import (
"context"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
Expand Down
2 changes: 1 addition & 1 deletion log/zerologadapter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package zerologadapter
import (
"context"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5"
"github.com/rs/zerolog"
)

Expand Down
4 changes: 2 additions & 2 deletions log/zerologadapter/adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"context"
"testing"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/log/zerologadapter"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/log/zerologadapter"
"github.com/rs/zerolog"
)

Expand Down
2 changes: 1 addition & 1 deletion messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package pgx
import (
"database/sql/driver"

"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)

func convertDriverValuers(args []interface{}) ([]interface{}, error) {
Expand Down
6 changes: 3 additions & 3 deletions pgbouncer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"testing"

"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v4/pgconn/stmtcache"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgconn/stmtcache"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pgconn/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion pgconn/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pgconn/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package pgconn_test
import (
"testing"

"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion pgconn/frontend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/jackc/pgproto3/v2"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pgconn/helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion pgconn/internal/ctxwatch/context_watcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"testing"
"time"

"github.com/jackc/pgx/v4/pgconn/internal/ctxwatch"
"github.com/jackc/pgx/v5/pgconn/internal/ctxwatch"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion pgconn/pgconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

"github.com/jackc/pgio"
"github.com/jackc/pgproto3/v2"
"github.com/jackc/pgx/v4/pgconn/internal/ctxwatch"
"github.com/jackc/pgx/v5/pgconn/internal/ctxwatch"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pgconn/pgconn_stress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"testing"

"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"

"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pgconn/pgconn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/jackc/pgmock"
"github.com/jackc/pgproto3/v2"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion pgconn/stmtcache/lru.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"sync/atomic"

"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v5/pgconn"
)

var lruCount uint64
Expand Down
Loading

0 comments on commit 72cc95e

Please sign in to comment.