database

package
v0.0.0-...-733d789 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: GPL-3.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 Config

type Config struct {
	Username string `json:"username"`
	Password string `json:"password"`

	Address string `json:"addr"`
	Port    uint16 `json:"port"`

	Name string `json:"name"`
}

type Pool

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

func NewPool

func NewPool(
	username string, password string,
	addr string, port uint16,
	name string,
) (*Pool, error)

func (*Pool) Exec

func (p *Pool) Exec(sql string, args ...interface{}) (err error)

func (*Pool) Query

func (p *Pool) Query(sql string, args ...interface{}) (pgx.Rows, error)

func (*Pool) QueryRow

func (p *Pool) QueryRow(sql string, args ...interface{}) pgx.Row

func (*Pool) Validate

func (p *Pool) Validate() (err error)

Jump to

Keyboard shortcuts

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