pgpool

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 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 PgPool

type PgPool struct {

	// optionally, a database connection pool can be set directly
	DbPool *sql.DB

	// or the following parameters can be used to initialize the pool
	DbHost      string
	DbPort      string
	DbUser      string
	DbPass      string
	DBName      string
	DBUrlParams string

	// or set dsn
	DSN string
}

func NewPgPool

func NewPgPool(dbHost, dbPort, dbUser, dbPass, dbName, dbUrlParams string) (*PgPool, error)

func (*PgPool) Connect added in v0.0.2

func (s *PgPool) Connect()

Jump to

Keyboard shortcuts

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