postgre

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host            string
	Username        string
	Password        string
	Name            string
	Port            int
	Timezone        string
	MaxOpenConns    int
	MaxIdleConns    int
	ConnMaxLifetime time.Duration
	ConnMaxIdleTime time.Duration
}

type Postgre

type Postgre struct {
	Database *sqlx.DB
}

func New

func New(config Config) (*Postgre, error)

func (*Postgre) Close

func (pg *Postgre) Close() error

func (*Postgre) Conn

func (pg *Postgre) Conn() *sqlx.DB

Jump to

Keyboard shortcuts

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