Documentation
¶
Index ¶
- func NewPostgres(cfg PostgresConfig) *sqlx.DB
- type PostgresConfig
- func (c PostgresConfig) GetConnectionMaxIdleTime() time.Duration
- func (c PostgresConfig) GetConnectionMaxLifeTime() time.Duration
- func (c PostgresConfig) GetConnectionString() string
- func (c PostgresConfig) GetConnectionURL() string
- func (c PostgresConfig) GetMaxIdleConnections() int
- func (c PostgresConfig) GetMaxPoolSize() int
- func (c PostgresConfig) GetName() string
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
Click to show internal directories.
Click to hide internal directories.