2021-07-13 12:07:48 +02:00
|
|
|
package postgres
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
// Config holds postgres configuration data.
|
2022-10-20 16:48:19 +08:00
|
|
|
//
|
2022-11-18 07:01:42 +08:00
|
|
|
//nolint:lll
|
2021-07-13 12:07:48 +02:00
|
|
|
type Config struct {
|
2021-11-17 09:45:45 +01:00
|
|
|
Dsn string `long:"dsn" description:"Database connection string."`
|
|
|
|
Timeout time.Duration `long:"timeout" description:"Database connection timeout. Set to zero to disable."`
|
|
|
|
MaxConnections int `long:"maxconnections" description:"The maximum number of open connections to the database. Set to zero for unlimited."`
|
2021-07-13 12:07:48 +02:00
|
|
|
}
|