Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPgxConn ¶
Types ¶
type PgxConnSingleton ¶
type PgxConnSingleton struct {
// contains filtered or unexported fields
}
func GetPgxConnInstance ¶
func GetPgxConnInstance() *PgxConnSingleton
func NewPgxConnInstance ¶
func NewPgxConnInstance(config PgxConfig) *PgxConnSingleton
func (*PgxConnSingleton) ClosePgx ¶
func (p *PgxConnSingleton) ClosePgx()
func (*PgxConnSingleton) ConnectPgx ¶
func (p *PgxConnSingleton) ConnectPgx() error
func (*PgxConnSingleton) GetPgxConn ¶
func (p *PgxConnSingleton) GetPgxConn() *pgxpool.Pool
func (*PgxConnSingleton) WithConfig ¶
func (p *PgxConnSingleton) WithConfig(config PgxConfig) *PgxConnSingleton
Click to show internal directories.
Click to hide internal directories.