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