postgres: add connection limit

This commit is contained in:
Joost Jager committed 2021-11-17 11:08:43 +01:00
1 parent b0fa19e8b0
commit 274faff980
8 files changed
+130 -7

No files matched your search

+3 -2
View File
@@ -4,6 +4,7 @@ import "time"
// Config holds postgres configuration data.
type Config struct {
Dsn string `long:"dsn" description:"Database connection string."`
Timeout time.Duration `long:"timeout" description:"Database connection timeout. Set to zero to disable."`
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."`
}