commonpool

package
v0.0.0-...-7e0b163 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	Connection *pgx.Conn
	// contains filtered or unexported fields
}

func GetConnection

func GetConnection(user string, password string, host string, port int, format int) (*Conn, error)

func (*Conn) Put

func (c *Conn) Put() error

type ConnectorPool

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

func NewConnectorPool

func NewConnectorPool(user string, password string, host string, port int, format int) (*ConnectorPool, error)

func (*ConnectorPool) Close

func (a *ConnectorPool) Close(c *pgx.Conn) error

func (*ConnectorPool) Get

func (a *ConnectorPool) Get() (*pgx.Conn, error)

func (*ConnectorPool) Put

func (a *ConnectorPool) Put(c *pgx.Conn) error

func (*ConnectorPool) Release

func (a *ConnectorPool) Release()

Jump to

Keyboard shortcuts

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