postgres

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseUUID

func ParseUUID(id string) (uuid.UUID, error)

Types

type Database

type Database interface {
	GetInstance() *database
	Connect()
	Disconnect()
	Pool() *pgxpool.Pool
}

func NewDatabase

func NewDatabase(ctx context.Context, config DbConfig) Database

type DbConfig

type DbConfig struct {
	User        string
	Pwd         string
	Host        string
	Port        uint16
	Name        string
	MinPoolSize uint16
	MaxPoolSize uint16
	Timeout     time.Duration
	SSLMode     string
}

Jump to

Keyboard shortcuts

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