postgres

package
v0.0.0-...-fe50809 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgres

func NewPostgres(
	logger *zap.SugaredLogger,
	postgresConfig PostgresConfig) (database.Database, error)

Types

type PostgresConfig

type PostgresConfig struct {
	ConnectionString string `yaml:"connectionString" env:"OMIGA_POSTGRES_CONNECTIONSTRING"`
	MaxOpenConns     int    `yaml:"maxOpenConns" env:"OMIGA_POSTGRES_MAXOPENCONNS"`
}

Jump to

Keyboard shortcuts

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