pg

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize(logger *zap.SugaredLogger)

Types

type Conn

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

func NewConn

func NewConn(connParams Dsn) (c *Conn)

func (*Conn) Connect

func (c *Conn) Connect() (err error)

func (*Conn) DSN

func (c *Conn) DSN() (dsn string)

func (*Conn) Host

func (c *Conn) Host() string

func (*Conn) IsPrimary

func (c *Conn) IsPrimary() (bool, error)

func (*Conn) IsStandby

func (c *Conn) IsStandby() (bool, error)

func (*Conn) Port

func (c *Conn) Port() string

type Dsn

type Dsn map[string]string

Jump to

Keyboard shortcuts

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