2
0

Use golang.org/x/xerrors

This commit is contained in:
Jack Christensen
2019-04-20 17:43:44 -05:00
parent efb333df6b
commit cc3461e65d
79 changed files with 79 additions and 79 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/jackc/pgconn"
"github.com/jackc/pgx/v4/pgtype"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type batchItem struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
"github.com/jackc/pgconn"
"github.com/jackc/pgproto3/v2"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"io"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// CopyFromRows returns a CopyFromSource interface over the provided rows slice
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/jackc/pgconn"
"github.com/jackc/pgx/v4"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
func TestConnCopyFromSmall(t *testing.T) {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
var pointRegexp *regexp.Regexp = regexp.MustCompile(`^\((.*),(.*)\)$`)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/hex"
"fmt"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// The values for log levels are chosen such that the zero value means that no
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net"
"reflect"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
"github.com/jackc/pgproto3/v2"
"github.com/jackc/pgx/v4/pgtype"
+1 -1
View File
@@ -3,7 +3,7 @@ package pgtype
import (
"database/sql/driver"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// ACLItem is used for PostgreSQL's aclitem data type. A sample aclitem
+1 -1
View File
@@ -3,7 +3,7 @@ package pgtype
import (
"database/sql/driver"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type ACLItemArray struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"unicode"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// Information on the internals of PostgreSQL arrays can be found in
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"strconv"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Bool struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type BoolArray struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Box struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type BPCharArray struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"encoding/hex"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Bytea struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type ByteaArray struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type CIDRArray struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Circle struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"reflect"
"time"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
const maxUint = ^uint(0)
+1 -1
View File
@@ -3,7 +3,7 @@ package pgtype
import (
"database/sql/driver"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
func DatabaseSQLValue(ci *ConnInfo, src Value) (interface{}, error) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"time"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Date struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"time"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type DateArray struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Daterange struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package pgtype
import (
"database/sql/driver"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type EnumArray struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package uuid
import (
"database/sql/driver"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
"github.com/jackc/pgx/v4/pgtype"
uuid "github.com/satori/go.uuid"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"strconv"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
"github.com/jackc/pgx/v4/pgtype"
"github.com/shopspring/decimal"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strconv"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Float4 struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Float4Array struct {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strconv"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Float8 struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Float8Array struct {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"unicode"
"unicode/utf8"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
"github.com/jackc/pgio"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type HstoreArray struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"net"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// Network address family is dependent on server socket.h value for AF_INET.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type InetArray struct {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strconv"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Int2 struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Int2Array struct {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Int4 struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Int4Array struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Int4range struct {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Int8 struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Int8Array struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Int8range struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"time"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
const (
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"encoding/json"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type JSON struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package pgtype
import (
"database/sql/driver"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type JSONB JSON
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Line struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Lseg struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"net"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Macaddr struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"net"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type MacaddrArray struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// PostgreSQL internal numeric storage uses 16-bit "digits" with base of 10,000
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type NumericArray struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Numrange struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"strconv"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// OID (Object Identifier Type) is, according to
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Path struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql"
"reflect"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// PostgreSQL oids for common types
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strconv"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// pguint32 is the core type that is used to implement PostgreSQL types such as
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Vec2 struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Polygon struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"math"
"strconv"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// QChar is for PostgreSQL's special 8-bit-only "char" type more akin to the C
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/binary"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type BoundType byte
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/binary"
"reflect"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// Record is the generic PostgreSQL record type such as is created with the
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"encoding/json"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Text struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type TextArray struct {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strings"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// TID is PostgreSQL's Tuple Identifier type.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"time"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
const pgTimestampFormat = "2006-01-02 15:04:05.999999999"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"time"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type TimestampArray struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"time"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
const pgTimestamptzHourFormat = "2006-01-02 15:04:05.999999999Z07"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"time"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type TimestamptzArray struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Tsrange struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Tstzrange struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/hex"
"fmt"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type UUID struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type UUIDArray struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type Varbit struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type VarcharArray struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"reflect"
"time"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
"github.com/jackc/pgconn"
"github.com/jackc/pgx/v4/pgtype"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strings"
"time"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
"github.com/jackc/pgconn"
"github.com/jackc/pgio"
+1 -1
View File
@@ -9,7 +9,7 @@ package pgx_test
// "testing"
// "time"
// "github.com/pkg/errors"
// errors "golang.org/x/xerrors"
// "github.com/jackc/fake"
// "github.com/jackc/pgx/v4"
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"github.com/jackc/pgconn"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
type TxIsoLevel string
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/jackc/pgio"
"github.com/jackc/pgx/v4/pgtype"
"github.com/pkg/errors"
errors "golang.org/x/xerrors"
)
// PostgreSQL format codes