postgres

package
v0.0.0-...-2adb2a2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TypeInstantiator

func TypeInstantiator(colType *sql.ColumnType) interface{}

Types

type Connection

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

Connection represents a postgresql connection

func (*Connection) Close

func (s *Connection) Close() error

Close closes a postgresql connection

func (*Connection) GetTables

func (s *Connection) GetTables(_ context.Context) ([]db.Table, error)

func (*Connection) Query

func (s *Connection) Query(ctx context.Context, queryStr string) (db.QueryResult, error)

type Driver

type Driver struct {
}

Driver Postgres driver

func (*Driver) NewConnection

func (d *Driver) NewConnection(config db.ConnectionConfig) (db.Connection, error)

Jump to

Keyboard shortcuts

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