cockroach: github.com/cockroachdb/cockroach/pkg/cmd/cmp-protocol/pgconnect Index | Files

package pgconnect

import "github.com/cockroachdb/cockroach/pkg/cmd/cmp-protocol/pgconnect"

Package pgconnect provides a way to get byte encodings from a simple query.

Index

Package Files

pgconnect.go

func Connect Uses

func Connect(
    ctx context.Context, input, addr, user string, code pgwirebase.FormatCode,
) ([]byte, error)

Connect connects to the postgres-compatible server at addr with specified user. input must specify a SELECT query (including the "SELECT") that returns one row and one column. code is the format code. The resulting row bytes are returned.

Package pgconnect imports 7 packages (graph) and is imported by 2 packages. Updated 2019-08-01. Refresh now. Tools for package owners.