cockroach: Index | Files

package pgconnect

import ""

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


Package Files


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 2020-05-16. Refresh now. Tools for package owners.