Finish importing pgio as internal package

query-exec-mode
Jack Christensen 2022-02-21 14:35:20 -06:00
parent 1be4c10ce4
commit d13f651810
68 changed files with 63 additions and 65 deletions

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
go.mod
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
go.sum
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=

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"
)

View File

@ -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.

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.

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.

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.

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.

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.

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 {

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"

View File

@ -7,7 +7,7 @@ import (
"encoding/json"
"fmt"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Bind struct {

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const cancelRequestCode = 80877102

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Close struct {

View File

@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CommandComplete struct {

View File

@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CopyBothResponse struct {

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 {

View File

@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CopyFail struct {

View File

@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CopyInResponse struct {

View File

@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CopyOutResponse struct {

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 {

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Describe struct {

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 {

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 {

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 {

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const gssEncReqNumber = 80877104

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 {

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 {

View File

@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type ParameterStatus struct {

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 {

View File

@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type PasswordMessage struct {

View File

@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Query struct {

View File

@ -5,7 +5,7 @@ import (
"encoding/binary"
"encoding/json"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const (

View File

@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type SASLInitialResponse struct {

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 {

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"errors"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const sslRequestNumber = 80877103

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

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

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.

View File

@ -5,7 +5,7 @@ import (
"encoding/binary"
"fmt"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type BitsScanner interface {

View File

@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type BoxScanner interface {

View File

@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type CircleScanner interface {

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.

View File

@ -7,7 +7,7 @@ import (
"fmt"
"time"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type DateScanner interface {

View File

@ -7,7 +7,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Float4 struct {

View File

@ -7,7 +7,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Float64Scanner interface {

View File

@ -10,7 +10,7 @@ import (
"unicode"
"unicode/utf8"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type HstoreScanner interface {

View File

@ -9,7 +9,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Int64Scanner interface {

View File

@ -7,7 +7,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Int64Scanner interface {

View File

@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
const (

View File

@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type LineScanner interface {

View File

@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type LsegScanner interface {

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

View File

@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type PathScanner interface {

View File

@ -9,7 +9,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Vec2 struct {

View File

@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type PolygonScanner interface {

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.

View File

@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type TIDScanner interface {

View File

@ -6,7 +6,7 @@ import (
"fmt"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type TimeScanner interface {

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"

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"

View File

@ -7,7 +7,7 @@ import (
"math"
"strconv"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v5/internal/pgio"
)
type Uint32Scanner interface {

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"
)