postgresql

package
v0.0.0-...-443ed56 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQL

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

func NewPostgreSQL

func NewPostgreSQL(username string, password string, host string, port uint, dbName string) *PostgreSQL

func (*PostgreSQL) Close

func (p *PostgreSQL) Close() error

func (*PostgreSQL) Connect

func (p *PostgreSQL) Connect() error

func (*PostgreSQL) ExecuteQuery

func (p *PostgreSQL) ExecuteQuery(query string) error

func (*PostgreSQL) FetchAllRows

func (p *PostgreSQL) FetchAllRows(table string) ([]map[string]interface{}, error)

func (*PostgreSQL) FetchTables

func (p *PostgreSQL) FetchTables(schema string, dumpTables []string, excludeTables []string) ([]string, error)

func (*PostgreSQL) GetURI

func (p *PostgreSQL) GetURI() string

func (*PostgreSQL) Ping

func (p *PostgreSQL) Ping() error

Jump to

Keyboard shortcuts

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