postgresql

package
v0.5.10-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package postgresql contains code specific for PostgreSQL database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLFormatter

func NewSQLFormatter() rdbms_utils.SQLFormatter

func NewTypeMapper

func NewTypeMapper() datasource.TypeMapper

func TableMetadataQuery added in v0.4.8

func TableMetadataQuery(
	request *api_service_protos.TDescribeTableRequest,
	schema string,
) (string, []any)

Types

type Connection

type Connection struct {
	*pgx.Conn
	// contains filtered or unexported fields
}

func (Connection) Close

func (c Connection) Close() error

func (Connection) Query

func (c Connection) Query(ctx context.Context, query string, args ...any) (rdbms_utils.Rows, error)

type ConnectionManagerConfig added in v0.5.5

type ConnectionManagerConfig interface {
	GetOpenConnectionTimeout() string
}

Jump to

Keyboard shortcuts

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