db

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPgPlaceholders

func ConvertPgPlaceholders(sql string, args ...any) (string, []any, error)

func CopyDeref

func CopyDeref[T any, U any](src T, dst *U) (*U, error)

func NewPgxPool

func NewPgxPool(connStr string, opts ...DatabaseConfigOption) (*pgxpool.Pool, error)

func SantizeDbConn

func SantizeDbConn(connStr string) string

Types

type DatabaseConfigOption

type DatabaseConfigOption func(*pgxpool.Config)

func WithDecimalRegister

func WithDecimalRegister() DatabaseConfigOption

Jump to

Keyboard shortcuts

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