db

package
v0.0.0-...-9fb9eb8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgres

func NewPostgres(cfg PostgresConfig) *sqlx.DB

Types

type PostgresConfig

type PostgresConfig struct {
	// contains filtered or unexported fields
}

func NewPostgresConfig

func NewPostgresConfig() PostgresConfig

func (PostgresConfig) GetConnectionMaxIdleTime

func (c PostgresConfig) GetConnectionMaxIdleTime() time.Duration

func (PostgresConfig) GetConnectionMaxLifeTime

func (c PostgresConfig) GetConnectionMaxLifeTime() time.Duration

func (PostgresConfig) GetConnectionString

func (c PostgresConfig) GetConnectionString() string

func (PostgresConfig) GetConnectionURL

func (c PostgresConfig) GetConnectionURL() string

func (PostgresConfig) GetMaxIdleConnections

func (c PostgresConfig) GetMaxIdleConnections() int

func (PostgresConfig) GetMaxPoolSize

func (c PostgresConfig) GetMaxPoolSize() int

func (PostgresConfig) GetName

func (c PostgresConfig) GetName() string

Jump to

Keyboard shortcuts

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