postgres

package
v0.0.0-...-f1a8a3b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connect

type Connect struct {
	Conn *sql.DB
}

Connect is ...

func New

func New(ctx context.Context, conf *PgSQLConfig) (*Connect, error)

New creates a new connection to the PostgreSQL database using the provided configuration. It returns a pointer to a Connect struct that contains the database connection and an error if any occurred.

type PgSQLConfig

type PgSQLConfig struct {
	DSN             string
	MaxConn         int
	MaxIdleConn     int
	MaxLifetimeConn int
}

PgSQLConfig is ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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