Skip to content

Commit

Permalink
feat: add max_conn_idle_time docs (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurKnoep authored Jun 1, 2021
1 parent 227b5a9 commit 89c4da3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/ecosystem/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Additionally, the following DSN parameters are supported:
Defaults to the number of CPU cores.
- `max_conn_lifetime` (duration): Sets the maximum amount of time ("ms", "s",
"m", "h") a connection may be reused.
- `max_conn_idle_time` (duration): Sets the maximum amount of time ("ms", "s",
"m", "h") a connection can be kept alive.
- `sslmode` (string): Whether or not to use SSL (default is require)
- `disable` - No SSL
- `require` - Always SSL (skip verification)
Expand Down Expand Up @@ -74,6 +76,8 @@ Additionally, the following DSN parameters are supported:
Defaults to the number of CPU cores.
- `max_conn_lifetime` (duration): Sets the maximum amount of time ("ms", "s",
"m", "h") a connection may be reused. Defaults to 0s (disabled).
- `max_conn_idle_time` (duration): Sets the maximum amount of time ("ms", "s",
"m", "h") a connection can be kept alive.
- `collation` (string): Sets the collation used for client-server interaction on
connection. In contrast to charset, collation does not issue additional
queries. If the specified collation is unavailable on the target server, the
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/ecosystem/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ Additionally, the following DSN parameters are supported:
Defaults to the number of CPU cores.
- `max_conn_lifetime` (duration): Sets the maximum amount of time ("ms", "s",
"m", "h") a connection may be reused.
- `max_conn_idle_time` (duration): Sets the maximum amount of time ("ms", "s",
"m", "h") a connection can be kept alive.
- `sslmode` (string): Whether or not to use SSL (default is require)
- `disable` - No SSL
- `require` - Always SSL (skip verification)
Expand Down Expand Up @@ -100,6 +102,8 @@ Additionally, the following DSN parameters are supported:
Defaults to the number of CPU cores.
- `max_conn_lifetime` (duration): Sets the maximum amount of time ("ms", "s",
"m", "h") a connection may be reused. Defaults to 0s (disabled).
- `max_conn_idle_time` (duration): Sets the maximum amount of time ("ms", "s",
"m", "h") a connection can be kept alive.
- `collation` (string): Sets the collation used for client-server interaction on
connection. In contrast to charset, collation does not issue additional
queries. If the specified collation is unavailable on the target server, the
Expand Down

0 comments on commit 89c4da3

Please sign in to comment.