postgresql

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource added in v0.2.0

type DataSource struct {
	// contains filtered or unexported fields
}

DataSource implements internal.DataSource interface for PostgreSQL storage.

func New

func New(dsn string) (*DataSource, error)

New configures a new connection to the PostgreSQL data source and returns an instance of it which implements internal.DataSource interface.

func (*DataSource) DescribeTable added in v0.2.0

func (d *DataSource) DescribeTable(schema string, table string) ([][]*string, error)

DescribeTable exported.

func (*DataSource) ListSchemas added in v0.2.0

func (d *DataSource) ListSchemas() (schemas []string, err error)

ListSchemas exported.

func (*DataSource) ListTables added in v0.2.0

func (d *DataSource) ListTables(schema string) (tables []string, err error)

ListTables exported.

func (*DataSource) Ping added in v0.2.0

func (d *DataSource) Ping() error

Ping exported.

func (*DataSource) PreviewTable added in v0.2.0

func (d *DataSource) PreviewTable(schema string, table string) ([][]*string, error)

PreviewTable exported.

func (*DataSource) Query added in v0.2.0

func (d *DataSource) Query(schema, query string) ([][]*string, error)

Query exported.

Jump to

Keyboard shortcuts

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