postgres

package
v0.0.0-...-5712c67 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 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 Client

type Client struct {
	DB *sql.DB
}

func NewClient

func NewClient(config *Config) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

type Config

type Config struct {
	DBHost     string
	DBPort     int
	DBUser     string
	DBPassword string
	DBName     string
	SSLMode    string

	OpenConn     int
	IdleConn     int
	ConnLifeTime time.Duration
}

func NewConfig

func NewConfig(
	host string, port int, user, password, name, ssl string,
	openConn, idleConn int, connLifeTime time.Duration) *Config

type TransactionManager

type TransactionManager struct{}

TransactionManager TODO: Maybe complete it later

Jump to

Keyboard shortcuts

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