2
0

Finish importing pgio as internal package

This commit is contained in:
Jack Christensen
2022-02-21 14:35:20 -06:00
parent 1be4c10ce4
commit d13f651810
68 changed files with 63 additions and 65 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"io"
"time"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/pgconn"
)
-1
View File
@@ -3,7 +3,6 @@ module github.com/jackc/pgx/v5
go 1.17
require (
github.com/jackc/pgio v1.0.0
github.com/jackc/pgpassfile v1.0.0
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b
github.com/jackc/puddle v1.2.1
-2
View File
@@ -1,8 +1,6 @@
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/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b h1:C8S2+VttkHFdOOCXJe+YGfa4vHYwlt4Zx+IVXQ97jYg=
+1 -1
View File
@@ -16,7 +16,7 @@ import (
"sync"
"time"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/pgconn/internal/ctxwatch"
"github.com/jackc/pgx/v5/pgproto3"
)
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// AuthenticationCleartextPassword is a message sent from the backend indicating that a clear-text password is required.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// AuthenticationMD5Password is a message sent from the backend indicating that an MD5 hashed password is required.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// AuthenticationOk is a message sent from the backend indicating that authentication was successful.
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// AuthenticationSASL is a message sent from the backend indicating that SASL authentication is required.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// AuthenticationSASLContinue is a message sent from the backend containing a SASL challenge.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// AuthenticationSASLFinal is a message sent from the backend indicating a SASL authentication has completed.
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type BackendKeyData struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"io"
"testing"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/pgproto3"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"encoding/json"
"fmt"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Bind struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const cancelRequestCode = 80877102
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Close struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CommandComplete struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CopyBothResponse struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/hex"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CopyData struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CopyFail struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CopyInResponse struct {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CopyOutResponse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/hex"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type DataRow struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Describe struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Execute struct {
+2 -1
View File
@@ -2,7 +2,8 @@ package pgproto3
import (
"encoding/binary"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type FunctionCall struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/hex"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type FunctionCallResponse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const gssEncReqNumber = 80877104
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type NotificationResponse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type ParameterDescription struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type ParameterStatus struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Parse struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type PasswordMessage struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Query struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const (
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type SASLInitialResponse struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"encoding/hex"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type SASLResponse struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const sslRequestNumber = 80877103
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"fmt"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const ProtocolVersionNumber = 196608 // 3.0
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"strings"
"unicode"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// Information on the internals of PostgreSQL arrays can be found in
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"reflect"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// ArrayGetter is a type that can be converted into a PostgreSQL array.
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"encoding/binary"
"fmt"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type BitsScanner interface {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type BoxScanner interface {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CircleScanner interface {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// CompositeIndexGetter is a type accessed by index that can be converted into a PostgreSQL composite.
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"time"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type DateScanner interface {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Float4 struct {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Float64Scanner interface {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"unicode"
"unicode/utf8"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type HstoreScanner interface {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Int64Scanner interface {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Int64Scanner interface {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const (
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type LineScanner interface {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type LsegScanner interface {
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// PostgreSQL internal numeric storage uses 16-bit "digits" with base of 10,000
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type PathScanner interface {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Vec2 struct {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type PolygonScanner interface {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"fmt"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
// RangeValuer is a type that can be converted into a PostgreSQL range.
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type TIDScanner interface {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type TimeScanner interface {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"time"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const pgTimestampFormat = "2006-01-02 15:04:05.999999999"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"time"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const pgTimestamptzHourFormat = "2006-01-02 15:04:05.999999999Z07"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Uint32Scanner interface {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"reflect"
"time"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
"github.com/jackc/pgx/v5/pgtype"
)