postgres

package
v0.10.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 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

Types

type PoolConfigOption

type PoolConfigOption func(cfg *pgxpool.Config)

func WithOtlpTracer added in v0.10.0

func WithOtlpTracer() PoolConfigOption

func WithTracer

func WithTracer(logger *log.Logger, level log.Level) PoolConfigOption

Jump to

Keyboard shortcuts

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