2
0

chore: change module name after fork

This commit is contained in:
2024-01-15 15:26:58 +03:00
parent b7de418d46
commit 8418eab609
194 changed files with 370 additions and 371 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"unicode"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
// Information on the internals of PostgreSQL arrays can be found in
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"reflect"
"github.com/jackc/pgx/v5/internal/anynil"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/anynil"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
// ArrayGetter is a type that can be converted into a PostgreSQL array.
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"strings"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"fmt"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type BitsScanner interface {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEqBits(a any) func(any) bool {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestBoolCodec(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type BoxScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestBoxCodec(t *testing.T) {
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"fmt"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type CircleScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestCircleTranscode(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
// CompositeIndexGetter is a type accessed by index that can be converted into a PostgreSQL composite.
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"fmt"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strconv"
"time"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type DateScanner interface {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/assert"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"testing"
pgx "github.com/jackc/pgx/v5"
pgx "github.com/andoma-go/pgx/v5"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os"
"time"
"github.com/jackc/pgx/v5"
"github.com/andoma-go/pgx/v5"
)
type Player struct {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"fmt"
"os"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
)
// Point represents a point that may be null.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"os"
"github.com/jackc/pgx/v5"
"github.com/andoma-go/pgx/v5"
)
func Example_json() {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Float4 struct {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestFloat4Codec(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Float64Scanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestFloat8Codec(t *testing.T) {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type HstoreScanner interface {
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEqMapStringString(a any) func(any) bool {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net/netip"
"testing"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEqIPNet(a any) func(any) bool {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Int64Scanner interface {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Int64Scanner interface {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"math"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestInt2Codec(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"math"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgtype"
)
<% [2, 4, 8].each do |pg_byte_size| %>
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
)
func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int16_1_rows_1_columns(b *testing.B) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype/testutil"
"github.com/andoma-go/pgx/v5"
)
<%
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
const (
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestIntervalCodec(t *testing.T) {
+2 -2
View File
@@ -8,8 +8,8 @@ import (
"errors"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type LineScanner interface {
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"context"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestLineTranscode(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type LsegScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestLsegTranscode(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net"
"testing"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEqHardwareAddr(a any) func(any) bool {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"reflect"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
// MultirangeGetter is a type that can be converted into a PostgreSQL multirange.
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"reflect"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
// PostgreSQL internal numeric storage uses 16-bit "digits" with base of 10,000
+3 -3
View File
@@ -10,9 +10,9 @@ import (
"strconv"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type PathScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEqPath(a any) func(any) bool {
+4 -4
View File
@@ -13,10 +13,10 @@ import (
"strconv"
"testing"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
_ "github.com/jackc/pgx/v5/stdlib"
"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"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Vec2 struct {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type PolygonScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEqPolygon(a any) func(any) bool {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"math"
"testing"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestQcharTranscode(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"fmt"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
// RangeValuer is a type that can be converted into a PostgreSQL range.
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"context"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"context"
"testing"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type TIDScanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestTIDCodec(t *testing.T) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"strconv"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type TimeScanner interface {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestTimeCodec(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
const pgTimestampFormat = "2006-01-02 15:04:05.999999999"
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"testing"
"time"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strings"
"time"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
const pgTimestamptzHourFormat = "2006-01-02 15:04:05.999999999Z07"
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"testing"
"time"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
pgx "github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/andoma-go/pgx/v5/internal/pgio"
)
type Uint32Scanner interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestUint32Codec(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgtype"
)
type Float8 float64
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype/zeronull"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEq(a any) func(any) bool {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"math"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgtype"
)
type Int2 int16
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"math"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgtype"
)
<% [2, 4, 8].each do |pg_byte_size| %>
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype/zeronull"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestInt2Transcode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype/zeronull"
"github.com/andoma-go/pgx/v5/pgtype/testutil"
"github.com/andoma-go/pgx/v5/pgtype/zeronull"
)
<% [2, 4, 8].each do |pg_byte_size| %>
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgtype"
)
type Text string
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype/zeronull"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestTextTranscode(t *testing.T) {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"time"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgtype"
)
type Timestamp time.Time
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype/zeronull"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEqTimestamp(a any) func(any) bool {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"time"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgtype"
)
type Timestamptz time.Time
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v5/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype/zeronull"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func isExpectedEqTimestamptz(a any) func(any) bool {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgtype"
)
type UUID [16]byte
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v5/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5/pgtype/zeronull"
"github.com/andoma-go/pgx/v5/pgxtest"
)
func TestUUIDTranscode(t *testing.T) {
+1 -1
View File
@@ -1,7 +1,7 @@
package zeronull
import (
"github.com/jackc/pgx/v5/pgtype"
"github.com/andoma-go/pgx/v5/pgtype"
)
// Register registers the zeronull types so they can be used in query exec modes that do not know the server OIDs.
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"os"
"testing"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgxtest"
"github.com/andoma-go/pgx/v5"
"github.com/andoma-go/pgx/v5/pgtype/zeronull"
"github.com/andoma-go/pgx/v5/pgxtest"
"github.com/stretchr/testify/require"
)