From ff905c39e4510a91fcaf46a762d11c2cc324d039 Mon Sep 17 00:00:00 2001 From: Sergey Solodyagin Date: Tue, 7 May 2024 09:50:32 +0300 Subject: [PATCH] rename module --- .github/ISSUE_TEMPLATE/bug_report.md | 54 ------ .github/ISSUE_TEMPLATE/feature_request.md | 20 --- .github/ISSUE_TEMPLATE/other-issues.md | 10 -- .github/workflows/ci.yml | 156 ------------------ README.md | 5 +- batch.go | 2 +- batch_test.go | 6 +- bench_test.go | 6 +- conn.go | 10 +- conn_test.go | 8 +- copy_from.go | 4 +- copy_from_test.go | 6 +- doc.go | 8 +- examples/chat/main.go | 2 +- examples/todo/README.md | 22 +-- examples/todo/main.go | 2 +- examples/url_shortener/main.go | 4 +- extended_query_builder.go | 6 +- go.mod | 20 +-- go.sum | 49 +++--- helper_test.go | 6 +- internal/iobufpool/iobufpool_test.go | 2 +- internal/pgmock/pgmock.go | 2 +- internal/pgmock/pgmock_test.go | 6 +- internal/sanitize/sanitize_test.go | 2 +- internal/stmtcache/lru_cache.go | 2 +- internal/stmtcache/stmtcache.go | 2 +- internal/stmtcache/unlimited_cache.go | 2 +- large_objects_test.go | 6 +- log/testingadapter/adapter.go | 2 +- named_args_test.go | 2 +- pgbouncer_test.go | 2 +- pgconn/README.md | 2 +- pgconn/auth_scram.go | 2 +- pgconn/benchmark_test.go | 2 +- pgconn/config.go | 6 +- pgconn/config_test.go | 2 +- pgconn/errors_test.go | 2 +- pgconn/helper_test.go | 2 +- pgconn/internal/bgreader/bgreader.go | 2 +- pgconn/internal/bgreader/bgreader_test.go | 2 +- .../internal/ctxwatch/context_watcher_test.go | 2 +- pgconn/krb5.go | 2 +- pgconn/pgconn.go | 10 +- pgconn/pgconn_stress_test.go | 2 +- pgconn/pgconn_test.go | 12 +- pgproto3/authentication_cleartext_password.go | 2 +- pgproto3/authentication_gss.go | 2 +- pgproto3/authentication_gss_continue.go | 2 +- pgproto3/authentication_md5_password.go | 2 +- pgproto3/authentication_ok.go | 2 +- pgproto3/authentication_sasl.go | 2 +- pgproto3/authentication_sasl_continue.go | 2 +- pgproto3/authentication_sasl_final.go | 2 +- pgproto3/backend_key_data.go | 2 +- pgproto3/backend_test.go | 4 +- pgproto3/bind.go | 2 +- pgproto3/bind_test.go | 2 +- pgproto3/cancel_request.go | 2 +- pgproto3/chunkreader.go | 2 +- pgproto3/copy_both_response.go | 2 +- pgproto3/copy_both_response_test.go | 2 +- pgproto3/copy_in_response.go | 2 +- pgproto3/copy_out_response.go | 2 +- pgproto3/data_row.go | 2 +- pgproto3/example/pgfortune/server.go | 2 +- pgproto3/execute.go | 2 +- pgproto3/frontend_test.go | 2 +- pgproto3/function_call.go | 2 +- pgproto3/function_call_response.go | 2 +- pgproto3/fuzz_test.go | 4 +- pgproto3/gss_enc_request.go | 2 +- pgproto3/notification_response.go | 2 +- pgproto3/parameter_description.go | 2 +- pgproto3/parse.go | 2 +- pgproto3/pgproto3.go | 2 +- pgproto3/query_test.go | 2 +- pgproto3/row_description.go | 2 +- pgproto3/sasl_initial_response.go | 2 +- pgproto3/ssl_request.go | 2 +- pgproto3/startup_message.go | 2 +- pgproto3/trace_test.go | 4 +- pgtype/array.go | 2 +- pgtype/array_codec.go | 4 +- pgtype/array_codec_test.go | 6 +- pgtype/bits.go | 2 +- pgtype/bits_test.go | 4 +- pgtype/bool_test.go | 4 +- pgtype/box.go | 2 +- pgtype/box_test.go | 4 +- pgtype/bytea_test.go | 6 +- pgtype/circle.go | 2 +- pgtype/circle_test.go | 4 +- pgtype/composite.go | 2 +- pgtype/composite_test.go | 4 +- pgtype/date.go | 2 +- pgtype/date_test.go | 4 +- pgtype/enum_codec_test.go | 2 +- pgtype/example_child_records_test.go | 2 +- pgtype/example_custom_type_test.go | 4 +- pgtype/example_json_test.go | 2 +- pgtype/float4.go | 2 +- pgtype/float4_test.go | 4 +- pgtype/float8.go | 2 +- pgtype/float8_test.go | 4 +- pgtype/hstore.go | 2 +- pgtype/hstore_test.go | 6 +- pgtype/inet_test.go | 2 +- pgtype/int.go | 2 +- pgtype/int.go.erb | 2 +- pgtype/int_test.go | 4 +- pgtype/int_test.go.erb | 2 +- pgtype/integration_benchmark_test.go | 4 +- pgtype/integration_benchmark_test.go.erb | 4 +- pgtype/interval.go | 2 +- pgtype/interval_test.go | 4 +- pgtype/json_test.go | 4 +- pgtype/jsonb_test.go | 4 +- pgtype/line.go | 2 +- pgtype/line_test.go | 6 +- pgtype/lseg.go | 2 +- pgtype/lseg_test.go | 4 +- pgtype/ltree_test.go | 4 +- pgtype/macaddr_test.go | 2 +- pgtype/multirange.go | 2 +- pgtype/multirange_test.go | 6 +- pgtype/numeric.go | 2 +- pgtype/numeric_test.go | 6 +- pgtype/path.go | 2 +- pgtype/path_test.go | 4 +- pgtype/pgtype_test.go | 8 +- pgtype/point.go | 2 +- pgtype/point_test.go | 4 +- pgtype/polygon.go | 2 +- pgtype/polygon_test.go | 4 +- pgtype/qchar_test.go | 2 +- pgtype/range_codec.go | 2 +- pgtype/range_codec_test.go | 6 +- pgtype/record_codec_test.go | 4 +- pgtype/text_test.go | 6 +- pgtype/tid.go | 2 +- pgtype/tid_test.go | 4 +- pgtype/time.go | 2 +- pgtype/time_test.go | 4 +- pgtype/timestamp.go | 2 +- pgtype/timestamp_test.go | 6 +- pgtype/timestamptz.go | 2 +- pgtype/timestamptz_test.go | 6 +- pgtype/uint32.go | 2 +- pgtype/uint32_test.go | 4 +- pgtype/uuid_test.go | 4 +- pgtype/zeronull/float8.go | 2 +- pgtype/zeronull/float8_test.go | 4 +- pgtype/zeronull/int.go | 2 +- pgtype/zeronull/int.go.erb | 2 +- pgtype/zeronull/int_test.go | 4 +- pgtype/zeronull/int_test.go.erb | 4 +- pgtype/zeronull/text.go | 2 +- pgtype/zeronull/text_test.go | 4 +- pgtype/zeronull/timestamp.go | 2 +- pgtype/zeronull/timestamp_test.go | 4 +- pgtype/zeronull/timestamptz.go | 2 +- pgtype/zeronull/timestamptz_test.go | 4 +- pgtype/zeronull/uuid.go | 2 +- pgtype/zeronull/uuid_test.go | 4 +- pgtype/zeronull/zeronull.go | 2 +- pgtype/zeronull/zeronull_test.go | 6 +- pgxpool/batch_results.go | 4 +- pgxpool/bench_test.go | 4 +- pgxpool/common_test.go | 6 +- pgxpool/conn.go | 6 +- pgxpool/conn_test.go | 2 +- pgxpool/pool.go | 6 +- pgxpool/pool_test.go | 6 +- pgxpool/rows.go | 4 +- pgxpool/stat.go | 2 +- pgxpool/tx.go | 4 +- pgxpool/tx_test.go | 2 +- pgxtest/pgxtest.go | 2 +- pipeline_test.go | 4 +- query_test.go | 8 +- rows.go | 4 +- rows_test.go | 6 +- stdlib/sql.go | 8 +- stdlib/sql_test.go | 12 +- tracelog/tracelog.go | 2 +- tracelog/tracelog_test.go | 6 +- tracer.go | 2 +- tracer_test.go | 4 +- tx.go | 2 +- tx_test.go | 6 +- values.go | 6 +- values_test.go | 4 +- 193 files changed, 359 insertions(+), 613 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/other-issues.md delete mode 100644 .github/workflows/ci.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 3c7b9aba..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: "" -labels: bug -assignees: "" ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: - -If possible, please provide runnable example such as: - -```go -package main - -import ( - "context" - "log" - "os" - - "github.com/andoma-go/pgx/v5" -) - -func main() { - conn, err := pgx.Connect(context.Background(), os.Getenv("DATABASE_URL")) - if err != nil { - log.Fatal(err) - } - defer conn.Close(context.Background()) - - // Your code here... -} -``` - -Please run your example with the race detector enabled. For example, `go run -race main.go` or `go test -race`. - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Actual behavior** -A clear and concise description of what actually happened. - -**Version** - -- Go: `$ go version` -> [e.g. go version go1.18.3 darwin/amd64] -- PostgreSQL: `$ psql --no-psqlrc --tuples-only -c 'select version()'` -> [e.g. PostgreSQL 14.4 on x86_64-apple-darwin21.5.0, compiled by Apple clang version 13.1.6 (clang-1316.0.21.2.5), 64-bit] -- pgx: `$ grep 'github.com/andoma-go/pgx/v[0-9]' go.mod` -> [e.g. v4.16.1] - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index bbcbbe7d..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/other-issues.md b/.github/ISSUE_TEMPLATE/other-issues.md deleted file mode 100644 index 27862a31..00000000 --- a/.github/ISSUE_TEMPLATE/other-issues.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Other issues -about: Any issue that is not a bug or a feature request -title: '' -labels: '' -assignees: '' - ---- - -Please describe the issue in detail. If this is a question about how to use pgx please use discussions instead. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 47ed2448..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,156 +0,0 @@ -name: CI - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - test: - name: Test - runs-on: ubuntu-22.04 - - strategy: - matrix: - go-version: ["1.21", "1.22"] - pg-version: [12, 13, 14, 15, 16, cockroachdb] - include: - - pg-version: 12 - pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test" - pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test" - pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test" - pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test" - pgx-ssl-password: certpw - pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test" - - pg-version: 13 - pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test" - pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test" - pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test" - pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test" - pgx-ssl-password: certpw - pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test" - - pg-version: 14 - pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test" - pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test" - pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test" - pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test" - pgx-ssl-password: certpw - pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test" - - pg-version: 15 - pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test" - pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test" - pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test" - pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test" - pgx-ssl-password: certpw - pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test" - - pg-version: 16 - pgx-test-database: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-unix-socket-conn-string: "host=/var/run/postgresql dbname=pgx_test" - pgx-test-tcp-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-scram-password-conn-string: "host=127.0.0.1 user=pgx_scram password=secret dbname=pgx_test" - pgx-test-md5-password-conn-string: "host=127.0.0.1 user=pgx_md5 password=secret dbname=pgx_test" - pgx-test-plain-password-conn-string: "host=127.0.0.1 user=pgx_pw password=secret dbname=pgx_test" - pgx-test-tls-conn-string: "host=localhost user=pgx_ssl password=secret sslmode=verify-full sslrootcert=/tmp/ca.pem dbname=pgx_test" - pgx-ssl-password: certpw - pgx-test-tls-client-conn-string: "host=localhost user=pgx_sslcert sslmode=verify-full sslrootcert=/tmp/ca.pem sslcert=/tmp/pgx_sslcert.crt sslkey=/tmp/pgx_sslcert.key dbname=pgx_test" - - pg-version: cockroachdb - pgx-test-database: "postgresql://root@127.0.0.1:26257/pgx_test?sslmode=disable&experimental_enable_temp_tables=on" - - steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - - - name: Set up Go ${{ matrix.go-version }} - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go-version }} - - - name: Setup database server for testing - run: ci/setup_test.bash - env: - PGVERSION: ${{ matrix.pg-version }} - - # - name: Setup upterm session - # uses: lhotari/action-upterm@v1 - # with: - # ## limits ssh access and adds the ssh public key for the user which triggered the workflow - # limit-access-to-actor: true - # env: - # PGX_TEST_DATABASE: ${{ matrix.pgx-test-database }} - # PGX_TEST_UNIX_SOCKET_CONN_STRING: ${{ matrix.pgx-test-unix-socket-conn-string }} - # PGX_TEST_TCP_CONN_STRING: ${{ matrix.pgx-test-tcp-conn-string }} - # PGX_TEST_SCRAM_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-scram-password-conn-string }} - # PGX_TEST_MD5_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-md5-password-conn-string }} - # PGX_TEST_PLAIN_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-plain-password-conn-string }} - # PGX_TEST_TLS_CONN_STRING: ${{ matrix.pgx-test-tls-conn-string }} - # PGX_SSL_PASSWORD: ${{ matrix.pgx-ssl-password }} - # PGX_TEST_TLS_CLIENT_CONN_STRING: ${{ matrix.pgx-test-tls-client-conn-string }} - - - name: Check formatting - run: | - gofmt -l -s -w . - git status - git diff --exit-code - - - name: Test - # parallel testing is disabled because somehow parallel testing causes Github Actions to kill the runner. - run: go test -parallel=1 -race ./... - env: - PGX_TEST_DATABASE: ${{ matrix.pgx-test-database }} - PGX_TEST_UNIX_SOCKET_CONN_STRING: ${{ matrix.pgx-test-unix-socket-conn-string }} - PGX_TEST_TCP_CONN_STRING: ${{ matrix.pgx-test-tcp-conn-string }} - PGX_TEST_SCRAM_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-scram-password-conn-string }} - PGX_TEST_MD5_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-md5-password-conn-string }} - PGX_TEST_PLAIN_PASSWORD_CONN_STRING: ${{ matrix.pgx-test-plain-password-conn-string }} - # TestConnectTLS fails. However, it succeeds if I connect to the CI server with upterm and run it. Give up on that test for now. - # PGX_TEST_TLS_CONN_STRING: ${{ matrix.pgx-test-tls-conn-string }} - PGX_SSL_PASSWORD: ${{ matrix.pgx-ssl-password }} - PGX_TEST_TLS_CLIENT_CONN_STRING: ${{ matrix.pgx-test-tls-client-conn-string }} - - test-windows: - name: Test Windows - runs-on: windows-latest - strategy: - matrix: - go-version: ["1.21", "1.22"] - - steps: - - name: Setup PostgreSQL - id: postgres - uses: ikalnytskyi/action-setup-postgres@v4 - with: - database: pgx_test - - - name: Check out code into the Go module directory - uses: actions/checkout@v4 - - - name: Set up Go ${{ matrix.go-version }} - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go-version }} - - - name: Initialize test database - run: | - psql -f testsetup/postgresql_setup.sql pgx_test - env: - PGSERVICE: ${{ steps.postgres.outputs.service-name }} - shell: bash - - - name: Test - # parallel testing is disabled because somehow parallel testing causes Github Actions to kill the runner. - run: go test -parallel=1 -race ./... - env: - PGX_TEST_DATABASE: ${{ steps.postgres.outputs.connection-uri }} diff --git a/README.md b/README.md index 62b7794e..0d8a9d9a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -[![Go Reference](https://pkg.go.dev/badge/github.com/andoma-go/pgx/v5.svg)](https://pkg.go.dev/github.com/andoma-go/pgx/v5) -[![Build Status](https://github.com/andoma-go/pgx/actions/workflows/ci.yml/badge.svg)](https://github.com/andoma-go/pgx/actions/workflows/ci.yml) - # pgx - PostgreSQL Driver and Toolkit pgx is a pure Go driver and toolkit for PostgreSQL. @@ -22,7 +19,7 @@ import ( "fmt" "os" - "github.com/andoma-go/pgx/v5" + "git.company.lan/gopkg/pgx/v5" ) func main() { diff --git a/batch.go b/batch.go index c2732ee5..51f37f3f 100644 --- a/batch.go +++ b/batch.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" ) // QueuedQuery is a query that has been queued for execution via a Batch. diff --git a/batch_test.go b/batch_test.go index 6fd3d9bf..a882cea3 100644 --- a/batch_test.go +++ b/batch_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/bench_test.go b/bench_test.go index c52ac991..a0f622d4 100644 --- a/bench_test.go +++ b/bench_test.go @@ -12,9 +12,9 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgtype" "github.com/stretchr/testify/require" ) diff --git a/conn.go b/conn.go index 463ad628..2ea3f1a2 100644 --- a/conn.go +++ b/conn.go @@ -10,11 +10,11 @@ import ( "strings" "time" - "github.com/andoma-go/pgx/v5/internal/anynil" - "github.com/andoma-go/pgx/v5/internal/sanitize" - "github.com/andoma-go/pgx/v5/internal/stmtcache" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/internal/anynil" + "git.company.lan/gopkg/pgx/v5/internal/sanitize" + "git.company.lan/gopkg/pgx/v5/internal/stmtcache" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgtype" ) // ConnConfig contains all the options used to establish a connection. It must be created by ParseConfig and diff --git a/conn_test.go b/conn_test.go index e73ba5fb..8eba6454 100644 --- a/conn_test.go +++ b/conn_test.go @@ -9,10 +9,10 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/copy_from.go b/copy_from.go index 947006e8..9e4ac4f5 100644 --- a/copy_from.go +++ b/copy_from.go @@ -6,8 +6,8 @@ import ( "fmt" "io" - "github.com/andoma-go/pgx/v5/internal/pgio" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/pgconn" ) // CopyFromRows returns a CopyFromSource interface over the provided rows slice diff --git a/copy_from_test.go b/copy_from_test.go index ed76bd9f..5ce46029 100644 --- a/copy_from_test.go +++ b/copy_from_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/doc.go b/doc.go index 4356e8e3..eaac57d5 100644 --- a/doc.go +++ b/doc.go @@ -2,7 +2,7 @@ /* pgx provides a native PostgreSQL driver and can act as a database/sql driver. The native PostgreSQL interface is similar to the database/sql interface while providing better speed and access to PostgreSQL specific features. Use -github.com/andoma-go/pgx/v5/stdlib to use pgx as a database/sql compatible driver. See that package's documentation for +git.company.lan/gopkg/pgx/v5/stdlib to use pgx as a database/sql compatible driver. See that package's documentation for details. Establishing a Connection @@ -18,7 +18,7 @@ here. In addition, a config struct can be created by [ParseConfig] and modified Connection Pool [*pgx.Conn] represents a single connection to the database and is not concurrency safe. Use package -github.com/andoma-go/pgx/v5/pgxpool for a concurrency safe connection pool. +git.company.lan/gopkg/pgx/v5/pgxpool for a concurrency safe connection pool. Query Interface @@ -178,11 +178,11 @@ pgx supports tracing by setting ConnConfig.Tracer. In addition, the tracelog package provides the TraceLog type which lets a traditional logger act as a Tracer. -For debug tracing of the actual PostgreSQL wire protocol messages see github.com/andoma-go/pgx/v5/pgproto3. +For debug tracing of the actual PostgreSQL wire protocol messages see git.company.lan/gopkg/pgx/v5/pgproto3. Lower Level PostgreSQL Functionality -github.com/andoma-go/pgx/v5/pgconn contains a lower level PostgreSQL driver roughly at the level of libpq. pgx.Conn in +git.company.lan/gopkg/pgx/v5/pgconn contains a lower level PostgreSQL driver roughly at the level of libpq. pgx.Conn in implemented on top of pgconn. The Conn.PgConn() method can be used to access this lower layer. PgBouncer diff --git a/examples/chat/main.go b/examples/chat/main.go index 35a6d8fa..f18f41f7 100644 --- a/examples/chat/main.go +++ b/examples/chat/main.go @@ -6,7 +6,7 @@ import ( "fmt" "os" - "github.com/andoma-go/pgx/v5/pgxpool" + "git.company.lan/gopkg/pgx/v5/pgxpool" ) var pool *pgxpool.Pool diff --git a/examples/todo/README.md b/examples/todo/README.md index e394513b..189b417a 100644 --- a/examples/todo/README.md +++ b/examples/todo/README.md @@ -48,20 +48,20 @@ Or you can prefix the todo execution with the environment variables: # Example Setup and Execution - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ createdb todo - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ psql todo < structure.sql + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ createdb todo + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ psql todo < structure.sql Expanded display is used automatically. Timing is on. CREATE TABLE Time: 6.363 ms - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ go build - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ export PGDATABASE=todo - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo add 'Learn Go' - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ go build + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ export PGDATABASE=todo + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo list + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo add 'Learn Go' + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo list 1. Learn Go - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo update 1 'Learn more Go' - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo update 1 'Learn more Go' + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo list 1. Learn more Go - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo remove 1 - jack@hk-47~/dev/go/src/github.com/andoma-go/pgx/examples/todo$ ./todo list + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo remove 1 + jack@hk-47~/dev/go/src/git.company.lan/gopkg/pgx/examples/todo$ ./todo list diff --git a/examples/todo/main.go b/examples/todo/main.go index 6537a981..a5e6ab93 100644 --- a/examples/todo/main.go +++ b/examples/todo/main.go @@ -6,7 +6,7 @@ import ( "os" "strconv" - "github.com/andoma-go/pgx/v5" + "git.company.lan/gopkg/pgx/v5" ) var conn *pgx.Conn diff --git a/examples/url_shortener/main.go b/examples/url_shortener/main.go index 03cd9e2c..c7e50f86 100644 --- a/examples/url_shortener/main.go +++ b/examples/url_shortener/main.go @@ -7,8 +7,8 @@ import ( "net/http" "os" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgxpool" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgxpool" ) var db *pgxpool.Pool diff --git a/extended_query_builder.go b/extended_query_builder.go index b8e16ac5..abab7f73 100644 --- a/extended_query_builder.go +++ b/extended_query_builder.go @@ -4,9 +4,9 @@ import ( "database/sql/driver" "fmt" - "github.com/andoma-go/pgx/v5/internal/anynil" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/internal/anynil" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgtype" ) // ExtendedQueryBuilder is used to choose the parameter formats, to format the parameters and to choose the result diff --git a/go.mod b/go.mod index e5830b72..36dff378 100644 --- a/go.mod +++ b/go.mod @@ -1,21 +1,21 @@ -module github.com/andoma-go/pgx/v5 +module git.company.lan/gopkg/pgx/v5 -go 1.19 +go 1.21.5 require ( - github.com/andoma-go/pgpassfile v0.0.0-20240115130830-7bdd00f68544 - github.com/andoma-go/pgservicefile v0.0.0-20240115131304-4a01ebf23c42 - github.com/andoma-go/puddle/v2 v2.0.0-20240328142435-357666cb6fa1 - github.com/stretchr/testify v1.8.1 - golang.org/x/crypto v0.17.0 - golang.org/x/text v0.14.0 + git.company.lan/gopkg/pgpassfile v0.0.0-20240507062409-ef15a31d1757 + git.company.lan/gopkg/pgservicefile v0.0.0-20240507063116-fb6b7c963773 + git.company.lan/gopkg/puddle/v2 v2.0.0-20240507063929-f69f8d1b5c10 + github.com/stretchr/testify v1.9.0 + golang.org/x/crypto v0.23.0 + golang.org/x/text v0.15.0 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect - github.com/kr/pretty v0.3.0 // indirect + github.com/kr/pretty v0.3.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/sync v0.1.0 // indirect + golang.org/x/sync v0.7.0 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 518b60cb..c38dcede 100644 --- a/go.sum +++ b/go.sum @@ -1,45 +1,34 @@ -github.com/andoma-go/pgpassfile v0.0.0-20240115130830-7bdd00f68544 h1:zw0WuRyP2Awzl63MI2VwMXSM/CsNqwygHg/CbySE1ls= -github.com/andoma-go/pgpassfile v0.0.0-20240115130830-7bdd00f68544/go.mod h1:JWSeNzz3oUhysdQgq1OL4PyV3R4QW/KyPvqqEykyN88= -github.com/andoma-go/pgservicefile v0.0.0-20240115131304-4a01ebf23c42 h1:TpYPPFFHiqFDM0luTfDiHBdGSgYU+uloD+FaA87BBRk= -github.com/andoma-go/pgservicefile v0.0.0-20240115131304-4a01ebf23c42/go.mod h1:iRoNsjH6Wp9dCo0oiT1geVOjYusx6RUIdzCJNktFso0= -github.com/andoma-go/puddle/v2 v2.0.0-20240328142435-357666cb6fa1 h1:3/6Uu7EWnHeHAwZ9tfytqJy+1x8LTtYrsWGczhMJ4uc= -github.com/andoma-go/puddle/v2 v2.0.0-20240328142435-357666cb6fa1/go.mod h1:iWHUHOdNa1/WJ6MyJAZ5qeTI/sJMbjVK/Gw4JLjh4Dw= +git.company.lan/gopkg/pgpassfile v0.0.0-20240507062409-ef15a31d1757 h1:ppdtmz274csxD/e/OBE0D3KPpXagkRQ6iCdqeEM4ZLA= +git.company.lan/gopkg/pgpassfile v0.0.0-20240507062409-ef15a31d1757/go.mod h1:kpHg8Jx3XkEuTJVmHZc3DJxhxcFTOPWR1CKwiWcTTFU= +git.company.lan/gopkg/pgservicefile v0.0.0-20240507063116-fb6b7c963773 h1:Hraz8dWZhKrDtNTdxiURfd3FTzZZEaSuDQtKQnxOMwc= +git.company.lan/gopkg/pgservicefile v0.0.0-20240507063116-fb6b7c963773/go.mod h1:a3bW75VIG851FeyzQyckg/mTx2QEz39arTGA01+t/R0= +git.company.lan/gopkg/puddle/v2 v2.0.0-20240507063929-f69f8d1b5c10 h1:Jka/8bWLsKGwbmFkkKDBXao8hi+/5avHLcaqhiB1tNY= +git.company.lan/gopkg/puddle/v2 v2.0.0-20240507063929-f69f8d1b5c10/go.mod h1:bDYKrBPX0qo3VPwRAcBrQ9hlu2r6/TEHpU0xxkvoX14= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= -github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= -github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= -github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk= -github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k= -golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= -gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/helper_test.go b/helper_test.go index 5f29d067..234ee3d4 100644 --- a/helper_test.go +++ b/helper_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/assert" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/internal/iobufpool/iobufpool_test.go b/internal/iobufpool/iobufpool_test.go index 0e82d7a5..6d56395b 100644 --- a/internal/iobufpool/iobufpool_test.go +++ b/internal/iobufpool/iobufpool_test.go @@ -3,7 +3,7 @@ package iobufpool_test import ( "testing" - "github.com/andoma-go/pgx/v5/internal/iobufpool" + "git.company.lan/gopkg/pgx/v5/internal/iobufpool" "github.com/stretchr/testify/assert" ) diff --git a/internal/pgmock/pgmock.go b/internal/pgmock/pgmock.go index ce5cd163..6c6ab507 100644 --- a/internal/pgmock/pgmock.go +++ b/internal/pgmock/pgmock.go @@ -6,7 +6,7 @@ import ( "io" "reflect" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgproto3" ) type Step interface { diff --git a/internal/pgmock/pgmock_test.go b/internal/pgmock/pgmock_test.go index 03939769..94fb3469 100644 --- a/internal/pgmock/pgmock_test.go +++ b/internal/pgmock/pgmock_test.go @@ -8,9 +8,9 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/internal/pgmock" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/internal/pgmock" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgproto3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/sanitize/sanitize_test.go b/internal/sanitize/sanitize_test.go index 90e31821..7530a148 100644 --- a/internal/sanitize/sanitize_test.go +++ b/internal/sanitize/sanitize_test.go @@ -4,7 +4,7 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/internal/sanitize" + "git.company.lan/gopkg/pgx/v5/internal/sanitize" ) func TestNewQuery(t *testing.T) { diff --git a/internal/stmtcache/lru_cache.go b/internal/stmtcache/lru_cache.go index 435af254..69ba5483 100644 --- a/internal/stmtcache/lru_cache.go +++ b/internal/stmtcache/lru_cache.go @@ -3,7 +3,7 @@ package stmtcache import ( "container/list" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" ) // LRUCache implements Cache with a Least Recently Used (LRU) cache. diff --git a/internal/stmtcache/stmtcache.go b/internal/stmtcache/stmtcache.go index 10483b79..ac52d961 100644 --- a/internal/stmtcache/stmtcache.go +++ b/internal/stmtcache/stmtcache.go @@ -5,7 +5,7 @@ import ( "crypto/sha256" "encoding/hex" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" ) // StatementName returns a statement name that will be stable for sql across multiple connections and program diff --git a/internal/stmtcache/unlimited_cache.go b/internal/stmtcache/unlimited_cache.go index f8c6ee24..73e30981 100644 --- a/internal/stmtcache/unlimited_cache.go +++ b/internal/stmtcache/unlimited_cache.go @@ -3,7 +3,7 @@ package stmtcache import ( "math" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" ) // UnlimitedCache implements Cache with no capacity limit. diff --git a/large_objects_test.go b/large_objects_test.go index fa5a2bdc..fb8191ce 100644 --- a/large_objects_test.go +++ b/large_objects_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestLargeObjects(t *testing.T) { diff --git a/log/testingadapter/adapter.go b/log/testingadapter/adapter.go index 87e731d9..22159ebd 100644 --- a/log/testingadapter/adapter.go +++ b/log/testingadapter/adapter.go @@ -6,7 +6,7 @@ import ( "context" "fmt" - "github.com/andoma-go/pgx/v5/tracelog" + "git.company.lan/gopkg/pgx/v5/tracelog" ) // TestingLogger interface defines the subset of testing.TB methods used by this diff --git a/named_args_test.go b/named_args_test.go index d4b94ab8..dc7a8a05 100644 --- a/named_args_test.go +++ b/named_args_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5" + "git.company.lan/gopkg/pgx/v5" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgbouncer_test.go b/pgbouncer_test.go index ada72938..698afc42 100644 --- a/pgbouncer_test.go +++ b/pgbouncer_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/andoma-go/pgx/v5" + "git.company.lan/gopkg/pgx/v5" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgconn/README.md b/pgconn/README.md index a74b69ea..e0d0fe9b 100644 --- a/pgconn/README.md +++ b/pgconn/README.md @@ -1,7 +1,7 @@ # pgconn Package pgconn is a low-level PostgreSQL database driver. It operates at nearly the same level as the C library libpq. -It is primarily intended to serve as the foundation for higher level libraries such as https://github.com/andoma-go/pgx. +It is primarily intended to serve as the foundation for higher level libraries such as https://git.company.lan/gopkg/pgx. Applications should handle normal queries with a higher level library and only use pgconn directly when required for low-level access to PostgreSQL functionality. diff --git a/pgconn/auth_scram.go b/pgconn/auth_scram.go index e3718bba..4f0b2820 100644 --- a/pgconn/auth_scram.go +++ b/pgconn/auth_scram.go @@ -22,7 +22,7 @@ import ( "fmt" "strconv" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgproto3" "golang.org/x/crypto/pbkdf2" "golang.org/x/text/secure/precis" ) diff --git a/pgconn/benchmark_test.go b/pgconn/benchmark_test.go index 380d117d..ebba66f0 100644 --- a/pgconn/benchmark_test.go +++ b/pgconn/benchmark_test.go @@ -6,7 +6,7 @@ import ( "os" "testing" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" "github.com/stretchr/testify/require" ) diff --git a/pgconn/config.go b/pgconn/config.go index 34a05113..adf7db79 100644 --- a/pgconn/config.go +++ b/pgconn/config.go @@ -17,9 +17,9 @@ import ( "strings" "time" - "github.com/andoma-go/pgpassfile" - "github.com/andoma-go/pgservicefile" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgpassfile" + "git.company.lan/gopkg/pgservicefile" + "git.company.lan/gopkg/pgx/v5/pgproto3" ) type AfterConnectFunc func(ctx context.Context, pgconn *PgConn) error diff --git a/pgconn/config_test.go b/pgconn/config_test.go index 608c40b7..1b0f1b4f 100644 --- a/pgconn/config_test.go +++ b/pgconn/config_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgconn/errors_test.go b/pgconn/errors_test.go index afde636d..8fda1078 100644 --- a/pgconn/errors_test.go +++ b/pgconn/errors_test.go @@ -3,7 +3,7 @@ package pgconn_test import ( "testing" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" "github.com/stretchr/testify/assert" ) diff --git a/pgconn/helper_test.go b/pgconn/helper_test.go index adb89866..023b04d1 100644 --- a/pgconn/helper_test.go +++ b/pgconn/helper_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/pgconn/internal/bgreader/bgreader.go b/pgconn/internal/bgreader/bgreader.go index d162e3cf..a48f6b00 100644 --- a/pgconn/internal/bgreader/bgreader.go +++ b/pgconn/internal/bgreader/bgreader.go @@ -5,7 +5,7 @@ import ( "io" "sync" - "github.com/andoma-go/pgx/v5/internal/iobufpool" + "git.company.lan/gopkg/pgx/v5/internal/iobufpool" ) const ( diff --git a/pgconn/internal/bgreader/bgreader_test.go b/pgconn/internal/bgreader/bgreader_test.go index 7a832dd9..d3e66f6c 100644 --- a/pgconn/internal/bgreader/bgreader_test.go +++ b/pgconn/internal/bgreader/bgreader_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgconn/internal/bgreader" + "git.company.lan/gopkg/pgx/v5/pgconn/internal/bgreader" "github.com/stretchr/testify/require" ) diff --git a/pgconn/internal/ctxwatch/context_watcher_test.go b/pgconn/internal/ctxwatch/context_watcher_test.go index 81091c0f..fb2bef69 100644 --- a/pgconn/internal/ctxwatch/context_watcher_test.go +++ b/pgconn/internal/ctxwatch/context_watcher_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgconn/internal/ctxwatch" + "git.company.lan/gopkg/pgx/v5/pgconn/internal/ctxwatch" "github.com/stretchr/testify/require" ) diff --git a/pgconn/krb5.go b/pgconn/krb5.go index 1856b0be..575f44d4 100644 --- a/pgconn/krb5.go +++ b/pgconn/krb5.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgproto3" ) // NewGSSFunc creates a GSS authentication provider, for use with diff --git a/pgconn/pgconn.go b/pgconn/pgconn.go index 5cce7713..ecaadfdd 100644 --- a/pgconn/pgconn.go +++ b/pgconn/pgconn.go @@ -16,11 +16,11 @@ import ( "sync" "time" - "github.com/andoma-go/pgx/v5/internal/iobufpool" - "github.com/andoma-go/pgx/v5/internal/pgio" - "github.com/andoma-go/pgx/v5/pgconn/internal/bgreader" - "github.com/andoma-go/pgx/v5/pgconn/internal/ctxwatch" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/internal/iobufpool" + "git.company.lan/gopkg/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/pgconn/internal/bgreader" + "git.company.lan/gopkg/pgx/v5/pgconn/internal/ctxwatch" + "git.company.lan/gopkg/pgx/v5/pgproto3" ) const ( diff --git a/pgconn/pgconn_stress_test.go b/pgconn/pgconn_stress_test.go index 2aa3cf1b..79b15b60 100644 --- a/pgconn/pgconn_stress_test.go +++ b/pgconn/pgconn_stress_test.go @@ -8,7 +8,7 @@ import ( "strconv" "testing" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" "github.com/stretchr/testify/require" ) diff --git a/pgconn/pgconn_test.go b/pgconn/pgconn_test.go index fff0c3cd..8b04be8a 100644 --- a/pgconn/pgconn_test.go +++ b/pgconn/pgconn_test.go @@ -20,12 +20,12 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/internal/pgio" - "github.com/andoma-go/pgx/v5/internal/pgmock" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgproto3" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgmock" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgtype" ) const pgbouncerConnStringEnvVar = "PGX_TEST_PGBOUNCER_CONN_STRING" diff --git a/pgproto3/authentication_cleartext_password.go b/pgproto3/authentication_cleartext_password.go index c99a13a0..fea836e2 100644 --- a/pgproto3/authentication_cleartext_password.go +++ b/pgproto3/authentication_cleartext_password.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // AuthenticationCleartextPassword is a message sent from the backend indicating that a clear-text password is required. diff --git a/pgproto3/authentication_gss.go b/pgproto3/authentication_gss.go index 9a7f2faa..e9127945 100644 --- a/pgproto3/authentication_gss.go +++ b/pgproto3/authentication_gss.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type AuthenticationGSS struct{} diff --git a/pgproto3/authentication_gss_continue.go b/pgproto3/authentication_gss_continue.go index 8c1c7d88..5c2a5dca 100644 --- a/pgproto3/authentication_gss_continue.go +++ b/pgproto3/authentication_gss_continue.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type AuthenticationGSSContinue struct { diff --git a/pgproto3/authentication_md5_password.go b/pgproto3/authentication_md5_password.go index 25d8fccf..652b0190 100644 --- a/pgproto3/authentication_md5_password.go +++ b/pgproto3/authentication_md5_password.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // AuthenticationMD5Password is a message sent from the backend indicating that an MD5 hashed password is required. diff --git a/pgproto3/authentication_ok.go b/pgproto3/authentication_ok.go index 68811052..4f1b66c8 100644 --- a/pgproto3/authentication_ok.go +++ b/pgproto3/authentication_ok.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // AuthenticationOk is a message sent from the backend indicating that authentication was successful. diff --git a/pgproto3/authentication_sasl.go b/pgproto3/authentication_sasl.go index f96f8790..f667db70 100644 --- a/pgproto3/authentication_sasl.go +++ b/pgproto3/authentication_sasl.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // AuthenticationSASL is a message sent from the backend indicating that SASL authentication is required. diff --git a/pgproto3/authentication_sasl_continue.go b/pgproto3/authentication_sasl_continue.go index e6898c59..c5f25177 100644 --- a/pgproto3/authentication_sasl_continue.go +++ b/pgproto3/authentication_sasl_continue.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // AuthenticationSASLContinue is a message sent from the backend containing a SASL challenge. diff --git a/pgproto3/authentication_sasl_final.go b/pgproto3/authentication_sasl_final.go index c642f3df..50acd125 100644 --- a/pgproto3/authentication_sasl_final.go +++ b/pgproto3/authentication_sasl_final.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // AuthenticationSASLFinal is a message sent from the backend indicating a SASL authentication has completed. diff --git a/pgproto3/backend_key_data.go b/pgproto3/backend_key_data.go index 33e0d382..7d5f2f67 100644 --- a/pgproto3/backend_key_data.go +++ b/pgproto3/backend_key_data.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type BackendKeyData struct { diff --git a/pgproto3/backend_test.go b/pgproto3/backend_test.go index 7f6bc2b2..4b18805a 100644 --- a/pgproto3/backend_test.go +++ b/pgproto3/backend_test.go @@ -4,8 +4,8 @@ import ( "io" "testing" - "github.com/andoma-go/pgx/v5/internal/pgio" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/pgproto3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgproto3/bind.go b/pgproto3/bind.go index 0e87061f..eaa1b505 100644 --- a/pgproto3/bind.go +++ b/pgproto3/bind.go @@ -9,7 +9,7 @@ import ( "fmt" "math" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type Bind struct { diff --git a/pgproto3/bind_test.go b/pgproto3/bind_test.go index a739bbeb..cc04dcc0 100644 --- a/pgproto3/bind_test.go +++ b/pgproto3/bind_test.go @@ -3,7 +3,7 @@ package pgproto3_test import ( "testing" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgproto3" "github.com/stretchr/testify/require" ) diff --git a/pgproto3/cancel_request.go b/pgproto3/cancel_request.go index 93e0c560..190d290d 100644 --- a/pgproto3/cancel_request.go +++ b/pgproto3/cancel_request.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) const cancelRequestCode = 80877102 diff --git a/pgproto3/chunkreader.go b/pgproto3/chunkreader.go index f7613383..f93cda1b 100644 --- a/pgproto3/chunkreader.go +++ b/pgproto3/chunkreader.go @@ -3,7 +3,7 @@ package pgproto3 import ( "io" - "github.com/andoma-go/pgx/v5/internal/iobufpool" + "git.company.lan/gopkg/pgx/v5/internal/iobufpool" ) // chunkReader is a io.Reader wrapper that minimizes IO reads and memory allocations. It allocates memory in chunks and diff --git a/pgproto3/copy_both_response.go b/pgproto3/copy_both_response.go index 55311272..9a8f9856 100644 --- a/pgproto3/copy_both_response.go +++ b/pgproto3/copy_both_response.go @@ -7,7 +7,7 @@ import ( "errors" "math" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type CopyBothResponse struct { diff --git a/pgproto3/copy_both_response_test.go b/pgproto3/copy_both_response_test.go index 04aff548..1640877e 100644 --- a/pgproto3/copy_both_response_test.go +++ b/pgproto3/copy_both_response_test.go @@ -3,7 +3,7 @@ package pgproto3_test import ( "testing" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgproto3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgproto3/copy_in_response.go b/pgproto3/copy_in_response.go index f3612c91..3a51b09b 100644 --- a/pgproto3/copy_in_response.go +++ b/pgproto3/copy_in_response.go @@ -7,7 +7,7 @@ import ( "errors" "math" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type CopyInResponse struct { diff --git a/pgproto3/copy_out_response.go b/pgproto3/copy_out_response.go index e1fb8ce9..23dbd65b 100644 --- a/pgproto3/copy_out_response.go +++ b/pgproto3/copy_out_response.go @@ -7,7 +7,7 @@ import ( "errors" "math" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type CopyOutResponse struct { diff --git a/pgproto3/data_row.go b/pgproto3/data_row.go index 9a44e3c8..3f835aa8 100644 --- a/pgproto3/data_row.go +++ b/pgproto3/data_row.go @@ -7,7 +7,7 @@ import ( "errors" "math" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type DataRow struct { diff --git a/pgproto3/example/pgfortune/server.go b/pgproto3/example/pgfortune/server.go index 8840aaaa..13a64630 100644 --- a/pgproto3/example/pgfortune/server.go +++ b/pgproto3/example/pgfortune/server.go @@ -4,7 +4,7 @@ import ( "fmt" "net" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgproto3" ) type PgFortuneBackend struct { diff --git a/pgproto3/execute.go b/pgproto3/execute.go index 7bf1489d..8b025c53 100644 --- a/pgproto3/execute.go +++ b/pgproto3/execute.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type Execute struct { diff --git a/pgproto3/frontend_test.go b/pgproto3/frontend_test.go index 3f153d53..0cfd3a1b 100644 --- a/pgproto3/frontend_test.go +++ b/pgproto3/frontend_test.go @@ -4,7 +4,7 @@ import ( "io" "testing" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgproto3" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgproto3/function_call.go b/pgproto3/function_call.go index 1b1e2a28..1e8f8899 100644 --- a/pgproto3/function_call.go +++ b/pgproto3/function_call.go @@ -5,7 +5,7 @@ import ( "errors" "math" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type FunctionCall struct { diff --git a/pgproto3/function_call_response.go b/pgproto3/function_call_response.go index 251f1946..cb428549 100644 --- a/pgproto3/function_call_response.go +++ b/pgproto3/function_call_response.go @@ -5,7 +5,7 @@ import ( "encoding/hex" "encoding/json" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type FunctionCallResponse struct { diff --git a/pgproto3/fuzz_test.go b/pgproto3/fuzz_test.go index aa7214c1..4cbe65cf 100644 --- a/pgproto3/fuzz_test.go +++ b/pgproto3/fuzz_test.go @@ -4,8 +4,8 @@ import ( "bytes" "testing" - "github.com/andoma-go/pgx/v5/internal/pgio" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/pgproto3" "github.com/stretchr/testify/require" ) diff --git a/pgproto3/gss_enc_request.go b/pgproto3/gss_enc_request.go index b2ec7512..6dc3d248 100644 --- a/pgproto3/gss_enc_request.go +++ b/pgproto3/gss_enc_request.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) const gssEncReqNumber = 80877104 diff --git a/pgproto3/notification_response.go b/pgproto3/notification_response.go index f318d175..9a3bf9ad 100644 --- a/pgproto3/notification_response.go +++ b/pgproto3/notification_response.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "encoding/json" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type NotificationResponse struct { diff --git a/pgproto3/parameter_description.go b/pgproto3/parameter_description.go index 96617c6c..b46580f6 100644 --- a/pgproto3/parameter_description.go +++ b/pgproto3/parameter_description.go @@ -7,7 +7,7 @@ import ( "errors" "math" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type ParameterDescription struct { diff --git a/pgproto3/parse.go b/pgproto3/parse.go index 0aaa65bf..d62fb8af 100644 --- a/pgproto3/parse.go +++ b/pgproto3/parse.go @@ -7,7 +7,7 @@ import ( "errors" "math" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type Parse struct { diff --git a/pgproto3/pgproto3.go b/pgproto3/pgproto3.go index 7714b212..1bec23f7 100644 --- a/pgproto3/pgproto3.go +++ b/pgproto3/pgproto3.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // maxMessageBodyLen is the maximum length of a message body in bytes. See PG_LARGE_MESSAGE_LIMIT in the PostgreSQL diff --git a/pgproto3/query_test.go b/pgproto3/query_test.go index ede2da06..7a7c0a6c 100644 --- a/pgproto3/query_test.go +++ b/pgproto3/query_test.go @@ -3,7 +3,7 @@ package pgproto3_test import ( "testing" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgproto3" "github.com/stretchr/testify/require" ) diff --git a/pgproto3/row_description.go b/pgproto3/row_description.go index d317281a..be5187ef 100644 --- a/pgproto3/row_description.go +++ b/pgproto3/row_description.go @@ -7,7 +7,7 @@ import ( "errors" "math" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) const ( diff --git a/pgproto3/sasl_initial_response.go b/pgproto3/sasl_initial_response.go index 6e551624..fd7f6f6c 100644 --- a/pgproto3/sasl_initial_response.go +++ b/pgproto3/sasl_initial_response.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type SASLInitialResponse struct { diff --git a/pgproto3/ssl_request.go b/pgproto3/ssl_request.go index 0344a0c1..e6f24215 100644 --- a/pgproto3/ssl_request.go +++ b/pgproto3/ssl_request.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) const sslRequestNumber = 80877103 diff --git a/pgproto3/startup_message.go b/pgproto3/startup_message.go index 5c091c39..18ad0b0c 100644 --- a/pgproto3/startup_message.go +++ b/pgproto3/startup_message.go @@ -7,7 +7,7 @@ import ( "errors" "fmt" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) const ProtocolVersionNumber = 196608 // 3.0 diff --git a/pgproto3/trace_test.go b/pgproto3/trace_test.go index a6e72e44..ed8d0749 100644 --- a/pgproto3/trace_test.go +++ b/pgproto3/trace_test.go @@ -7,8 +7,8 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgproto3" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgproto3" "github.com/stretchr/testify/require" ) diff --git a/pgtype/array.go b/pgtype/array.go index 28abf56f..464bd36c 100644 --- a/pgtype/array.go +++ b/pgtype/array.go @@ -9,7 +9,7 @@ import ( "strings" "unicode" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // Information on the internals of PostgreSQL arrays can be found in diff --git a/pgtype/array_codec.go b/pgtype/array_codec.go index 3d3085c8..0722dcc8 100644 --- a/pgtype/array_codec.go +++ b/pgtype/array_codec.go @@ -6,8 +6,8 @@ import ( "fmt" "reflect" - "github.com/andoma-go/pgx/v5/internal/anynil" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/anynil" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // ArrayGetter is a type that can be converted into a PostgreSQL array. diff --git a/pgtype/array_codec_test.go b/pgtype/array_codec_test.go index 96182e20..cb1c60d8 100644 --- a/pgtype/array_codec_test.go +++ b/pgtype/array_codec_test.go @@ -7,9 +7,9 @@ import ( "strings" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgtype/bits.go b/pgtype/bits.go index 338e78cf..05025ebf 100644 --- a/pgtype/bits.go +++ b/pgtype/bits.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "fmt" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type BitsScanner interface { diff --git a/pgtype/bits_test.go b/pgtype/bits_test.go index 85db229e..c38e2547 100644 --- a/pgtype/bits_test.go +++ b/pgtype/bits_test.go @@ -5,8 +5,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func isExpectedEqBits(a any) func(any) bool { diff --git a/pgtype/bool_test.go b/pgtype/bool_test.go index 9dfbbda8..1049d9eb 100644 --- a/pgtype/bool_test.go +++ b/pgtype/bool_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestBoolCodec(t *testing.T) { diff --git a/pgtype/box.go b/pgtype/box.go index 041b5d7c..2a3181ff 100644 --- a/pgtype/box.go +++ b/pgtype/box.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type BoxScanner interface { diff --git a/pgtype/box_test.go b/pgtype/box_test.go index 7145d7b7..3137985e 100644 --- a/pgtype/box_test.go +++ b/pgtype/box_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestBoxCodec(t *testing.T) { diff --git a/pgtype/bytea_test.go b/pgtype/bytea_test.go index b4ed4d9d..ef4648ae 100644 --- a/pgtype/bytea_test.go +++ b/pgtype/bytea_test.go @@ -6,9 +6,9 @@ import ( "fmt" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/circle.go b/pgtype/circle.go index e61681e8..64dbcd97 100644 --- a/pgtype/circle.go +++ b/pgtype/circle.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type CircleScanner interface { diff --git a/pgtype/circle_test.go b/pgtype/circle_test.go index c27ab12f..952f29dc 100644 --- a/pgtype/circle_test.go +++ b/pgtype/circle_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestCircleTranscode(t *testing.T) { diff --git a/pgtype/composite.go b/pgtype/composite.go index 6fd83476..72641254 100644 --- a/pgtype/composite.go +++ b/pgtype/composite.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // CompositeIndexGetter is a type accessed by index that can be converted into a PostgreSQL composite. diff --git a/pgtype/composite_test.go b/pgtype/composite_test.go index cb4cc770..bb0aef71 100644 --- a/pgtype/composite_test.go +++ b/pgtype/composite_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" "github.com/stretchr/testify/require" ) diff --git a/pgtype/date.go b/pgtype/date.go index da91a1ec..4ff37e44 100644 --- a/pgtype/date.go +++ b/pgtype/date.go @@ -9,7 +9,7 @@ import ( "strconv" "time" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type DateScanner interface { diff --git a/pgtype/date_test.go b/pgtype/date_test.go index fcea9b5c..c1b1cdfd 100644 --- a/pgtype/date_test.go +++ b/pgtype/date_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/assert" ) diff --git a/pgtype/enum_codec_test.go b/pgtype/enum_codec_test.go index 0ffb5ff8..5d4eaf93 100644 --- a/pgtype/enum_codec_test.go +++ b/pgtype/enum_codec_test.go @@ -4,7 +4,7 @@ import ( "context" "testing" - pgx "github.com/andoma-go/pgx/v5" + pgx "git.company.lan/gopkg/pgx/v5" "github.com/stretchr/testify/require" ) diff --git a/pgtype/example_child_records_test.go b/pgtype/example_child_records_test.go index 3f5ff30a..21e01feb 100644 --- a/pgtype/example_child_records_test.go +++ b/pgtype/example_child_records_test.go @@ -6,7 +6,7 @@ import ( "os" "time" - "github.com/andoma-go/pgx/v5" + "git.company.lan/gopkg/pgx/v5" ) type Player struct { diff --git a/pgtype/example_custom_type_test.go b/pgtype/example_custom_type_test.go index 26796b68..1c42700e 100644 --- a/pgtype/example_custom_type_test.go +++ b/pgtype/example_custom_type_test.go @@ -5,8 +5,8 @@ import ( "fmt" "os" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" ) // Point represents a point that may be null. diff --git a/pgtype/example_json_test.go b/pgtype/example_json_test.go index e07387d0..c4d288a2 100644 --- a/pgtype/example_json_test.go +++ b/pgtype/example_json_test.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - "github.com/andoma-go/pgx/v5" + "git.company.lan/gopkg/pgx/v5" ) func Example_json() { diff --git a/pgtype/float4.go b/pgtype/float4.go index 054e45f3..80a0de16 100644 --- a/pgtype/float4.go +++ b/pgtype/float4.go @@ -8,7 +8,7 @@ import ( "math" "strconv" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type Float4 struct { diff --git a/pgtype/float4_test.go b/pgtype/float4_test.go index 905f23a7..3d5b2568 100644 --- a/pgtype/float4_test.go +++ b/pgtype/float4_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestFloat4Codec(t *testing.T) { diff --git a/pgtype/float8.go b/pgtype/float8.go index ddf631c1..7952860a 100644 --- a/pgtype/float8.go +++ b/pgtype/float8.go @@ -8,7 +8,7 @@ import ( "math" "strconv" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type Float64Scanner interface { diff --git a/pgtype/float8_test.go b/pgtype/float8_test.go index c5098f49..43f406e5 100644 --- a/pgtype/float8_test.go +++ b/pgtype/float8_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestFloat8Codec(t *testing.T) { diff --git a/pgtype/hstore.go b/pgtype/hstore.go index d2026313..149adde2 100644 --- a/pgtype/hstore.go +++ b/pgtype/hstore.go @@ -7,7 +7,7 @@ import ( "fmt" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type HstoreScanner interface { diff --git a/pgtype/hstore_test.go b/pgtype/hstore_test.go index a9ac8b42..cbcd7973 100644 --- a/pgtype/hstore_test.go +++ b/pgtype/hstore_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func isExpectedEqMapStringString(a any) func(any) bool { diff --git a/pgtype/inet_test.go b/pgtype/inet_test.go index 46ec74b5..65351741 100644 --- a/pgtype/inet_test.go +++ b/pgtype/inet_test.go @@ -6,7 +6,7 @@ import ( "net/netip" "testing" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func isExpectedEqIPNet(a any) func(any) bool { diff --git a/pgtype/int.go b/pgtype/int.go index 9efa623a..fbfc8430 100644 --- a/pgtype/int.go +++ b/pgtype/int.go @@ -9,7 +9,7 @@ import ( "math" "strconv" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type Int64Scanner interface { diff --git a/pgtype/int.go.erb b/pgtype/int.go.erb index 5d22ed58..d6b9dd78 100644 --- a/pgtype/int.go.erb +++ b/pgtype/int.go.erb @@ -8,7 +8,7 @@ import ( "math" "strconv" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type Int64Scanner interface { diff --git a/pgtype/int_test.go b/pgtype/int_test.go index 43e15efc..110f728c 100644 --- a/pgtype/int_test.go +++ b/pgtype/int_test.go @@ -6,8 +6,8 @@ import ( "math" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestInt2Codec(t *testing.T) { diff --git a/pgtype/int_test.go.erb b/pgtype/int_test.go.erb index cae24718..cec7287d 100644 --- a/pgtype/int_test.go.erb +++ b/pgtype/int_test.go.erb @@ -4,7 +4,7 @@ import ( "math" "testing" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgtype" ) <% [2, 4, 8].each do |pg_byte_size| %> diff --git a/pgtype/integration_benchmark_test.go b/pgtype/integration_benchmark_test.go index 916fae82..7117f9cb 100644 --- a/pgtype/integration_benchmark_test.go +++ b/pgtype/integration_benchmark_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" ) func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int16_1_rows_1_columns(b *testing.B) { diff --git a/pgtype/integration_benchmark_test.go.erb b/pgtype/integration_benchmark_test.go.erb index 3c0a119c..1f9525a0 100644 --- a/pgtype/integration_benchmark_test.go.erb +++ b/pgtype/integration_benchmark_test.go.erb @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype/testutil" - "github.com/andoma-go/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype/testutil" + "git.company.lan/gopkg/pgx/v5" ) <% diff --git a/pgtype/interval.go b/pgtype/interval.go index 9ec772ac..233a1b79 100644 --- a/pgtype/interval.go +++ b/pgtype/interval.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) const ( diff --git a/pgtype/interval_test.go b/pgtype/interval_test.go index 92e49018..93294a12 100644 --- a/pgtype/interval_test.go +++ b/pgtype/interval_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestIntervalCodec(t *testing.T) { diff --git a/pgtype/json_test.go b/pgtype/json_test.go index b72dea79..c74fd543 100644 --- a/pgtype/json_test.go +++ b/pgtype/json_test.go @@ -8,8 +8,8 @@ import ( "errors" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/jsonb_test.go b/pgtype/jsonb_test.go index 8803a5f4..53be545b 100644 --- a/pgtype/jsonb_test.go +++ b/pgtype/jsonb_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/line.go b/pgtype/line.go index 2be595c3..e9d32bef 100644 --- a/pgtype/line.go +++ b/pgtype/line.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type LineScanner interface { diff --git a/pgtype/line_test.go b/pgtype/line_test.go index 67b61aef..ce8db00d 100644 --- a/pgtype/line_test.go +++ b/pgtype/line_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestLineTranscode(t *testing.T) { diff --git a/pgtype/lseg.go b/pgtype/lseg.go index 2b5347e6..c55fdedc 100644 --- a/pgtype/lseg.go +++ b/pgtype/lseg.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type LsegScanner interface { diff --git a/pgtype/lseg_test.go b/pgtype/lseg_test.go index 2d50ee9d..9870e15a 100644 --- a/pgtype/lseg_test.go +++ b/pgtype/lseg_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestLsegTranscode(t *testing.T) { diff --git a/pgtype/ltree_test.go b/pgtype/ltree_test.go index a6adb9ef..e1f57fd5 100644 --- a/pgtype/ltree_test.go +++ b/pgtype/ltree_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestLtreeCodec(t *testing.T) { diff --git a/pgtype/macaddr_test.go b/pgtype/macaddr_test.go index 78ba1768..02291d8c 100644 --- a/pgtype/macaddr_test.go +++ b/pgtype/macaddr_test.go @@ -6,7 +6,7 @@ import ( "net" "testing" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func isExpectedEqHardwareAddr(a any) func(any) bool { diff --git a/pgtype/multirange.go b/pgtype/multirange.go index 78898889..072f88a3 100644 --- a/pgtype/multirange.go +++ b/pgtype/multirange.go @@ -7,7 +7,7 @@ import ( "fmt" "reflect" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // MultirangeGetter is a type that can be converted into a PostgreSQL multirange. diff --git a/pgtype/multirange_test.go b/pgtype/multirange_test.go index 327a50de..069251ea 100644 --- a/pgtype/multirange_test.go +++ b/pgtype/multirange_test.go @@ -5,9 +5,9 @@ import ( "reflect" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/numeric.go b/pgtype/numeric.go index 2f809245..cc618b58 100644 --- a/pgtype/numeric.go +++ b/pgtype/numeric.go @@ -10,7 +10,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // PostgreSQL internal numeric storage uses 16-bit "digits" with base of 10,000 diff --git a/pgtype/numeric_test.go b/pgtype/numeric_test.go index 03abc138..2bef61df 100644 --- a/pgtype/numeric_test.go +++ b/pgtype/numeric_test.go @@ -10,9 +10,9 @@ import ( "strconv" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgtype/path.go b/pgtype/path.go index 0417ba98..8b1c4ed4 100644 --- a/pgtype/path.go +++ b/pgtype/path.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type PathScanner interface { diff --git a/pgtype/path_test.go b/pgtype/path_test.go index 60f5764c..36db8742 100644 --- a/pgtype/path_test.go +++ b/pgtype/path_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func isExpectedEqPath(a any) func(any) bool { diff --git a/pgtype/pgtype_test.go b/pgtype/pgtype_test.go index 164750c0..f9d65be0 100644 --- a/pgtype/pgtype_test.go +++ b/pgtype/pgtype_test.go @@ -13,10 +13,10 @@ import ( "strconv" "testing" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" - _ "github.com/andoma-go/pgx/v5/stdlib" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" + _ "git.company.lan/gopkg/pgx/v5/stdlib" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgtype/point.go b/pgtype/point.go index 498568cd..10230263 100644 --- a/pgtype/point.go +++ b/pgtype/point.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type Vec2 struct { diff --git a/pgtype/point_test.go b/pgtype/point_test.go index 285f0f14..5d5aefd8 100644 --- a/pgtype/point_test.go +++ b/pgtype/point_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/polygon.go b/pgtype/polygon.go index d231a952..9b470a08 100644 --- a/pgtype/polygon.go +++ b/pgtype/polygon.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type PolygonScanner interface { diff --git a/pgtype/polygon_test.go b/pgtype/polygon_test.go index 8f59a77f..9736ef95 100644 --- a/pgtype/polygon_test.go +++ b/pgtype/polygon_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func isExpectedEqPolygon(a any) func(any) bool { diff --git a/pgtype/qchar_test.go b/pgtype/qchar_test.go index fbdadee3..2c48924e 100644 --- a/pgtype/qchar_test.go +++ b/pgtype/qchar_test.go @@ -5,7 +5,7 @@ import ( "math" "testing" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestQcharTranscode(t *testing.T) { diff --git a/pgtype/range_codec.go b/pgtype/range_codec.go index 4a5b9b00..5e9ed1ae 100644 --- a/pgtype/range_codec.go +++ b/pgtype/range_codec.go @@ -4,7 +4,7 @@ import ( "database/sql/driver" "fmt" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) // RangeValuer is a type that can be converted into a PostgreSQL range. diff --git a/pgtype/range_codec_test.go b/pgtype/range_codec_test.go index 3b6a0892..5efa5885 100644 --- a/pgtype/range_codec_test.go +++ b/pgtype/range_codec_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/record_codec_test.go b/pgtype/record_codec_test.go index 493a8d15..59cdb0ac 100644 --- a/pgtype/record_codec_test.go +++ b/pgtype/record_codec_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" "github.com/stretchr/testify/require" ) diff --git a/pgtype/text_test.go b/pgtype/text_test.go index 0ef3a2ff..7ab1a5a8 100644 --- a/pgtype/text_test.go +++ b/pgtype/text_test.go @@ -4,9 +4,9 @@ import ( "context" "testing" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/tid.go b/pgtype/tid.go index aef864a0..0ca348e9 100644 --- a/pgtype/tid.go +++ b/pgtype/tid.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type TIDScanner interface { diff --git a/pgtype/tid_test.go b/pgtype/tid_test.go index b029e8c5..1715e54b 100644 --- a/pgtype/tid_test.go +++ b/pgtype/tid_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestTIDCodec(t *testing.T) { diff --git a/pgtype/time.go b/pgtype/time.go index e161d826..c7c7e2c7 100644 --- a/pgtype/time.go +++ b/pgtype/time.go @@ -6,7 +6,7 @@ import ( "fmt" "strconv" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type TimeScanner interface { diff --git a/pgtype/time_test.go b/pgtype/time_test.go index 914349f7..411651cd 100644 --- a/pgtype/time_test.go +++ b/pgtype/time_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestTimeCodec(t *testing.T) { diff --git a/pgtype/timestamp.go b/pgtype/timestamp.go index 3196ecc7..2ad44f90 100644 --- a/pgtype/timestamp.go +++ b/pgtype/timestamp.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) const pgTimestampFormat = "2006-01-02 15:04:05.999999999" diff --git a/pgtype/timestamp_test.go b/pgtype/timestamp_test.go index a0a9d88b..39ca4a1d 100644 --- a/pgtype/timestamp_test.go +++ b/pgtype/timestamp_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/timestamptz.go b/pgtype/timestamptz.go index 4a624906..e92ea2ee 100644 --- a/pgtype/timestamptz.go +++ b/pgtype/timestamptz.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) const pgTimestamptzHourFormat = "2006-01-02 15:04:05.999999999Z07" diff --git a/pgtype/timestamptz_test.go b/pgtype/timestamptz_test.go index 749af0eb..839abaad 100644 --- a/pgtype/timestamptz_test.go +++ b/pgtype/timestamptz_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - pgx "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + pgx "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/uint32.go b/pgtype/uint32.go index f74cf014..8916ea77 100644 --- a/pgtype/uint32.go +++ b/pgtype/uint32.go @@ -7,7 +7,7 @@ import ( "math" "strconv" - "github.com/andoma-go/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/internal/pgio" ) type Uint32Scanner interface { diff --git a/pgtype/uint32_test.go b/pgtype/uint32_test.go index 192dcce9..808f18a0 100644 --- a/pgtype/uint32_test.go +++ b/pgtype/uint32_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestUint32Codec(t *testing.T) { diff --git a/pgtype/uuid_test.go b/pgtype/uuid_test.go index 9c6459c1..937450af 100644 --- a/pgtype/uuid_test.go +++ b/pgtype/uuid_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgtype/zeronull/float8.go b/pgtype/zeronull/float8.go index e23cedc5..f7d42d0f 100644 --- a/pgtype/zeronull/float8.go +++ b/pgtype/zeronull/float8.go @@ -3,7 +3,7 @@ package zeronull import ( "database/sql/driver" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgtype" ) type Float8 float64 diff --git a/pgtype/zeronull/float8_test.go b/pgtype/zeronull/float8_test.go index 87b54546..8c272417 100644 --- a/pgtype/zeronull/float8_test.go +++ b/pgtype/zeronull/float8_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype/zeronull" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype/zeronull" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func isExpectedEq(a any) func(any) bool { diff --git a/pgtype/zeronull/int.go b/pgtype/zeronull/int.go index 32b8b085..e42e3c19 100644 --- a/pgtype/zeronull/int.go +++ b/pgtype/zeronull/int.go @@ -6,7 +6,7 @@ import ( "fmt" "math" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgtype" ) type Int2 int16 diff --git a/pgtype/zeronull/int.go.erb b/pgtype/zeronull/int.go.erb index 028cc295..2da49789 100644 --- a/pgtype/zeronull/int.go.erb +++ b/pgtype/zeronull/int.go.erb @@ -5,7 +5,7 @@ import ( "fmt" "math" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgtype" ) <% [2, 4, 8].each do |pg_byte_size| %> diff --git a/pgtype/zeronull/int_test.go b/pgtype/zeronull/int_test.go index aa447083..a18d824c 100644 --- a/pgtype/zeronull/int_test.go +++ b/pgtype/zeronull/int_test.go @@ -5,8 +5,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype/zeronull" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype/zeronull" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestInt2Transcode(t *testing.T) { diff --git a/pgtype/zeronull/int_test.go.erb b/pgtype/zeronull/int_test.go.erb index 37ae4b75..a7ff3ae6 100644 --- a/pgtype/zeronull/int_test.go.erb +++ b/pgtype/zeronull/int_test.go.erb @@ -3,8 +3,8 @@ package zeronull_test import ( "testing" - "github.com/andoma-go/pgx/v5/pgtype/testutil" - "github.com/andoma-go/pgx/v5/pgtype/zeronull" + "git.company.lan/gopkg/pgx/v5/pgtype/testutil" + "git.company.lan/gopkg/pgx/v5/pgtype/zeronull" ) <% [2, 4, 8].each do |pg_byte_size| %> diff --git a/pgtype/zeronull/text.go b/pgtype/zeronull/text.go index 356f0480..97ca1ccd 100644 --- a/pgtype/zeronull/text.go +++ b/pgtype/zeronull/text.go @@ -3,7 +3,7 @@ package zeronull import ( "database/sql/driver" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgtype" ) type Text string diff --git a/pgtype/zeronull/text_test.go b/pgtype/zeronull/text_test.go index 84d8e748..f48ce300 100644 --- a/pgtype/zeronull/text_test.go +++ b/pgtype/zeronull/text_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype/zeronull" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype/zeronull" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestTextTranscode(t *testing.T) { diff --git a/pgtype/zeronull/timestamp.go b/pgtype/zeronull/timestamp.go index f71c1d86..b6767d19 100644 --- a/pgtype/zeronull/timestamp.go +++ b/pgtype/zeronull/timestamp.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgtype" ) type Timestamp time.Time diff --git a/pgtype/zeronull/timestamp_test.go b/pgtype/zeronull/timestamp_test.go index eb4ae2c8..282e26d2 100644 --- a/pgtype/zeronull/timestamp_test.go +++ b/pgtype/zeronull/timestamp_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgtype/zeronull" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype/zeronull" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func isExpectedEqTimestamp(a any) func(any) bool { diff --git a/pgtype/zeronull/timestamptz.go b/pgtype/zeronull/timestamptz.go index bcd34b64..8a33dd56 100644 --- a/pgtype/zeronull/timestamptz.go +++ b/pgtype/zeronull/timestamptz.go @@ -5,7 +5,7 @@ import ( "fmt" "time" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgtype" ) type Timestamptz time.Time diff --git a/pgtype/zeronull/timestamptz_test.go b/pgtype/zeronull/timestamptz_test.go index e7889370..fd12e12d 100644 --- a/pgtype/zeronull/timestamptz_test.go +++ b/pgtype/zeronull/timestamptz_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgtype/zeronull" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype/zeronull" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func isExpectedEqTimestamptz(a any) func(any) bool { diff --git a/pgtype/zeronull/uuid.go b/pgtype/zeronull/uuid.go index 2826840e..51df4362 100644 --- a/pgtype/zeronull/uuid.go +++ b/pgtype/zeronull/uuid.go @@ -3,7 +3,7 @@ package zeronull import ( "database/sql/driver" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgtype" ) type UUID [16]byte diff --git a/pgtype/zeronull/uuid_test.go b/pgtype/zeronull/uuid_test.go index c95cb662..3a182e81 100644 --- a/pgtype/zeronull/uuid_test.go +++ b/pgtype/zeronull/uuid_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5/pgtype/zeronull" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/pgtype/zeronull" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) func TestUUIDTranscode(t *testing.T) { diff --git a/pgtype/zeronull/zeronull.go b/pgtype/zeronull/zeronull.go index 2faf10eb..3d3e7f6a 100644 --- a/pgtype/zeronull/zeronull.go +++ b/pgtype/zeronull/zeronull.go @@ -1,7 +1,7 @@ package zeronull import ( - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgtype" ) // Register registers the zeronull types so they can be used in query exec modes that do not know the server OIDs. diff --git a/pgtype/zeronull/zeronull_test.go b/pgtype/zeronull/zeronull_test.go index aa09ef1e..f09c954c 100644 --- a/pgtype/zeronull/zeronull_test.go +++ b/pgtype/zeronull/zeronull_test.go @@ -5,9 +5,9 @@ import ( "os" "testing" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgtype/zeronull" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgtype/zeronull" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/pgxpool/batch_results.go b/pgxpool/batch_results.go index 7596686e..a1af7de5 100644 --- a/pgxpool/batch_results.go +++ b/pgxpool/batch_results.go @@ -1,8 +1,8 @@ package pgxpool import ( - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" ) type errBatchResults struct { diff --git a/pgxpool/bench_test.go b/pgxpool/bench_test.go index cc112209..b20196fb 100644 --- a/pgxpool/bench_test.go +++ b/pgxpool/bench_test.go @@ -5,8 +5,8 @@ import ( "os" "testing" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgxpool" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgxpool" "github.com/stretchr/testify/require" ) diff --git a/pgxpool/common_test.go b/pgxpool/common_test.go index dd2428e9..4cec8dd1 100644 --- a/pgxpool/common_test.go +++ b/pgxpool/common_test.go @@ -5,10 +5,10 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgxpool" + "git.company.lan/gopkg/pgx/v5/pgxpool" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgxpool/conn.go b/pgxpool/conn.go index 0d0c0eb0..80003755 100644 --- a/pgxpool/conn.go +++ b/pgxpool/conn.go @@ -4,9 +4,9 @@ import ( "context" "sync/atomic" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/puddle/v2" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/puddle/v2" ) // Conn is an acquired *pgx.Conn from a Pool. diff --git a/pgxpool/conn_test.go b/pgxpool/conn_test.go index 33eb3909..8530a64e 100644 --- a/pgxpool/conn_test.go +++ b/pgxpool/conn_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgxpool" + "git.company.lan/gopkg/pgx/v5/pgxpool" "github.com/stretchr/testify/require" ) diff --git a/pgxpool/pool.go b/pgxpool/pool.go index c515ca23..a0e55085 100644 --- a/pgxpool/pool.go +++ b/pgxpool/pool.go @@ -10,9 +10,9 @@ import ( "sync/atomic" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/puddle/v2" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/puddle/v2" ) var defaultMaxConns = int32(4) diff --git a/pgxpool/pool_test.go b/pgxpool/pool_test.go index 810ccd9d..aa5d9244 100644 --- a/pgxpool/pool_test.go +++ b/pgxpool/pool_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgxpool" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgxpool" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/pgxpool/rows.go b/pgxpool/rows.go index 02ccaeac..1f39ad47 100644 --- a/pgxpool/rows.go +++ b/pgxpool/rows.go @@ -1,8 +1,8 @@ package pgxpool import ( - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" ) type errRows struct { diff --git a/pgxpool/stat.go b/pgxpool/stat.go index a5a118c7..a8d28554 100644 --- a/pgxpool/stat.go +++ b/pgxpool/stat.go @@ -3,7 +3,7 @@ package pgxpool import ( "time" - "github.com/andoma-go/puddle/v2" + "git.company.lan/gopkg/puddle/v2" ) // Stat is a snapshot of Pool statistics. diff --git a/pgxpool/tx.go b/pgxpool/tx.go index bbff2fe3..aafc6d6c 100644 --- a/pgxpool/tx.go +++ b/pgxpool/tx.go @@ -3,8 +3,8 @@ package pgxpool import ( "context" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" ) // Tx represents a database transaction acquired from a Pool. diff --git a/pgxpool/tx_test.go b/pgxpool/tx_test.go index c329ebf1..c37bc60d 100644 --- a/pgxpool/tx_test.go +++ b/pgxpool/tx_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5/pgxpool" + "git.company.lan/gopkg/pgx/v5/pgxpool" "github.com/stretchr/testify/require" ) diff --git a/pgxtest/pgxtest.go b/pgxtest/pgxtest.go index ef526531..33bd0fc4 100644 --- a/pgxtest/pgxtest.go +++ b/pgxtest/pgxtest.go @@ -9,7 +9,7 @@ import ( "strconv" "testing" - "github.com/andoma-go/pgx/v5" + "git.company.lan/gopkg/pgx/v5" ) var AllQueryExecModes = []pgx.QueryExecMode{ diff --git a/pipeline_test.go b/pipeline_test.go index 52cf4839..23aa66eb 100644 --- a/pipeline_test.go +++ b/pipeline_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" "github.com/stretchr/testify/require" ) diff --git a/query_test.go b/query_test.go index e6109da2..e1ae28f0 100644 --- a/query_test.go +++ b/query_test.go @@ -12,10 +12,10 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/rows.go b/rows.go index f95dc439..3d22fdf8 100644 --- a/rows.go +++ b/rows.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgtype" ) // Rows is the result set returned from *Conn.Query. Rows must be closed before diff --git a/rows_test.go b/rows_test.go index 14009c4a..45c81cc3 100644 --- a/rows_test.go +++ b/rows_test.go @@ -11,9 +11,9 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgxtest" ) type testRowScanner struct { diff --git a/stdlib/sql.go b/stdlib/sql.go index 9dbaebaa..8262a996 100644 --- a/stdlib/sql.go +++ b/stdlib/sql.go @@ -80,10 +80,10 @@ import ( "sync" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxpool" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxpool" ) // Only intrinsic types should be binary format with database/sql. diff --git a/stdlib/sql_test.go b/stdlib/sql_test.go index a9b223da..baf9e121 100644 --- a/stdlib/sql_test.go +++ b/stdlib/sql_test.go @@ -15,12 +15,12 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgtype" - "github.com/andoma-go/pgx/v5/pgxpool" - "github.com/andoma-go/pgx/v5/stdlib" - "github.com/andoma-go/pgx/v5/tracelog" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/pgxpool" + "git.company.lan/gopkg/pgx/v5/stdlib" + "git.company.lan/gopkg/pgx/v5/tracelog" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tracelog/tracelog.go b/tracelog/tracelog.go index 4982ca1f..e9c0f8ef 100644 --- a/tracelog/tracelog.go +++ b/tracelog/tracelog.go @@ -9,7 +9,7 @@ import ( "time" "unicode/utf8" - "github.com/andoma-go/pgx/v5" + "git.company.lan/gopkg/pgx/v5" ) // LogLevel represents the pgx logging level. See LogLevel* constants for diff --git a/tracelog/tracelog_test.go b/tracelog/tracelog_test.go index 0df09b4c..d6be4772 100644 --- a/tracelog/tracelog_test.go +++ b/tracelog/tracelog_test.go @@ -9,9 +9,9 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgxtest" - "github.com/andoma-go/pgx/v5/tracelog" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5/tracelog" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/tracer.go b/tracer.go index 6b7bd4d3..e3681242 100644 --- a/tracer.go +++ b/tracer.go @@ -3,7 +3,7 @@ package pgx import ( "context" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" ) // QueryTracer traces Query, QueryRow, and Exec. diff --git a/tracer_test.go b/tracer_test.go index bdea04ba..805f74a5 100644 --- a/tracer_test.go +++ b/tracer_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/tx.go b/tx.go index a53d39c5..8a7aa421 100644 --- a/tx.go +++ b/tx.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/andoma-go/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgconn" ) // TxIsoLevel is the transaction isolation level (serializable, repeatable read, read committed or read uncommitted) diff --git a/tx_test.go b/tx_test.go index ea7a79b5..d007d43d 100644 --- a/tx_test.go +++ b/tx_test.go @@ -7,9 +7,9 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgconn" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgconn" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/require" ) diff --git a/values.go b/values.go index 2583e96f..75dfa2ca 100644 --- a/values.go +++ b/values.go @@ -3,9 +3,9 @@ package pgx import ( "errors" - "github.com/andoma-go/pgx/v5/internal/anynil" - "github.com/andoma-go/pgx/v5/internal/pgio" - "github.com/andoma-go/pgx/v5/pgtype" + "git.company.lan/gopkg/pgx/v5/internal/anynil" + "git.company.lan/gopkg/pgx/v5/internal/pgio" + "git.company.lan/gopkg/pgx/v5/pgtype" ) // PostgreSQL format codes diff --git a/values_test.go b/values_test.go index fe7bd7cf..679f855d 100644 --- a/values_test.go +++ b/values_test.go @@ -10,8 +10,8 @@ import ( "testing" "time" - "github.com/andoma-go/pgx/v5" - "github.com/andoma-go/pgx/v5/pgxtest" + "git.company.lan/gopkg/pgx/v5" + "git.company.lan/gopkg/pgx/v5/pgxtest" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" )