pgme

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

README

pgMe - PostreSQL utils for me

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Host     string        `json:"host"`
	Port     int           `json:"port"`
	Name     string        `json:"name"`
	UserName string        `json:"username"`
	Password string        `json:"password"`
	Channel  string        `json:"channel"`
	Timeout  time.Duration `json:"timeout"`
	Limit    int           `json:"limit"`
	// contains filtered or unexported fields
}

func (*Database) ClosePool added in v0.0.3

func (db *Database) ClosePool()

func (*Database) Disconnect added in v0.0.3

func (db *Database) Disconnect(conn *pgxpool.Conn)

func (*Database) InitPool added in v0.0.3

func (db *Database) InitPool() error

func (*Database) NewConnection added in v0.0.3

func (db *Database) NewConnection(ctx context.Context) (*pgxpool.Conn, error)

func (*Database) WaitChannel added in v0.0.3

func (db *Database) WaitChannel(ctx context.Context)

Jump to

Keyboard shortcuts

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