You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for the `SqliteConfig.MaxConnections`,
`PostgresConfig.MaxOpenConnections` and
`PostgresConfig.MaxIdleConnections` previously stated that an unlimited
number was used when the value was set to 0. This is not the case
however, as setting the value to 0 will result in the default values
being used.
Copy file name to clipboardExpand all lines: sqldb/v2/config.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ const (
33
33
typeSqliteConfigstruct {
34
34
Timeout time.Duration`long:"timeout" description:"The time after which a database query should be timed out."`
35
35
BusyTimeout time.Duration`long:"busytimeout" description:"The maximum amount of time to wait for a database connection to become available for a query."`
36
-
MaxConnectionsint`long:"maxconnections" description:"The maximum number of open connections to the database. Set to zero for unlimited."`
36
+
MaxConnectionsint`long:"maxconnections" description:"The maximum number of open connections to the database."`
37
37
PragmaOptions []string`long:"pragmaoptions" description:"A list of pragma options to set on a database connection. For example, 'auto_vacuum=incremental'. Note that the flag must be specified multiple times if multiple options are to be set."`
38
38
SkipMigrationsbool`long:"skipmigrations" description:"Skip applying migrations on startup."`
Timeout time.Duration`long:"timeout" description:"Database connection timeout. Set to zero to disable."`
78
-
MaxOpenConnectionsint`long:"maxconnections" description:"Max open connections to keep alive to the database server. Set to zero for unlimited."`
79
-
MaxIdleConnectionsint`long:"maxidleconnections" description:"Max number of idle connections to keep in the connection pool. Set to zero for unlimited."`
78
+
MaxOpenConnectionsint`long:"maxconnections" description:"Max open connections to keep alive to the database server."`
79
+
MaxIdleConnectionsint`long:"maxidleconnections" description:"Max number of idle connections to keep in the connection pool."`
80
80
ConnMaxLifetime time.Duration`long:"connmaxlifetime" description:"Max amount of time a connection can be reused for before it is closed. Valid time units are {s, m, h}."`
81
81
ConnMaxIdleTime time.Duration`long:"connmaxidletime" description:"Max amount of time a connection can be idle for before it is closed. Valid time units are {s, m, h}."`
82
82
RequireSSLbool`long:"requiressl" description:"Whether to require using SSL (mode: require) when connecting to the server."`
0 commit comments