postgres

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbPool *pgxpool.Pool

Functions

func CloseDb

func CloseDb()

func InitDB

func InitDB() *pgxpool.Pool

func InitWithUrl

func InitWithUrl(url string, opts ...PoolConfigOption) *pgxpool.Pool

func NewMyTracer added in v0.18.0

func NewMyTracer(logger *log.Logger, level log.Level) pgx.QueryTracer

func NewOtlpTracer added in v0.18.0

func NewOtlpTracer() pgx.QueryTracer

Types

type PoolConfigOption

type PoolConfigOption func(cfg *pgxpool.Config)

func WithTracer

func WithTracer(t pgx.QueryTracer) PoolConfigOption

Jump to

Keyboard shortcuts

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