postgres

package
v0.0.0-...-9ca7e33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PostgresResponseTypeRowDescription  = 'T'
	PostgresResponseTypeDataRow         = 'D'
	PostgresResponseTypeCommandComplete = 'C'
	PostgresResponseTypeErrorResponse   = 'E'
	PostgresResponseTypeAuthentication  = 'R'
	PostgresResponseTypeParameterStatus = 'S'
	PostgresResponseTypeReadyForQuery   = 'Z'
	PostgresResponseTypeKeyData         = 'K'
)

Variables

View Source
var (
	DB *sql.DB
)
View Source
var (
	ErrNonQueryData = fmt.Errorf("non-query data")
)
View Source
var (
	Interval = 30 * time.Minute
)

Functions

func GetPostgresConnection

func GetPostgresConnection(uri string) (*pgx.Conn, error)

func ProcessSchema

func ProcessSchema(ctx context.Context, opts daemontypes.DaemonOpts)

func RunProxy

func RunProxy(ctx context.Context, opts daemontypes.DaemonOpts)

Types

type PostgresResponseType

type PostgresResponseType byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL