postgres

package
v0.0.0-...-bbd5720 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlterToExec

type AlterToExec struct {
	Stmt string `db:"stmt"`
}

AlterToExec is row structure for any Select Tables, Sequences etc query, which should prepate Alter statement

type Config

type Config struct {
	Host         string
	Port         int
	Db           string
	User         string
	Password     string
	Schemas      []string
	TLS          bool
	Verbose      bool
	WaitDuration time.Duration
}

type Connection

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

func New

func New(cfg *Config, retries int) (*Connection, error)

func (*Connection) ChangeOwnerForDB

func (c *Connection) ChangeOwnerForDB(newOwner, db string) error

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) HealthCheck

func (c *Connection) HealthCheck() error

Jump to

Keyboard shortcuts

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