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
|`acquireConnectionTimeout`<br /><br />_Optional_| How long knex will wait before throwing a timeout error when acquiring a connection (in milliseconds) |`Integer`|`60000`|
31
32
32
33
#### Connection parameters
33
34
34
35
The `connection.connection` object found in `./config/database.js` is used to pass database connection information and accepts the following parameters:
|`user`| Username used to establish the connection |`String`|
42
+
|`user`| Username used to establish the connection |`String`|
42
43
|`password`| Password used to establish the connection |`String`|
43
44
|`timezone`| Set the default behavior for local time. Default value: `utc`[Timezone options](https://www.php.net/manual/en/timezones.php)|`String`|
44
45
|`schema`| Set the default database schema. **Used only for Postgres DB.**|`String`|
@@ -48,24 +49,24 @@ The `connection.connection` object found in `./config/database.js` is used to pa
48
49
49
50
The `connection.pool` object optionally found in `./config/database.js` is used to pass [Tarn.js](https://github.com/vincit/tarn.js) database pooling options and accepts the following parameters:
|`min`| Minimum number of database connections to keepalive |`Integer`|`0`|
55
+
|`max`| Maximum number of database connections to keepalive |`Integer`|`10`|
56
+
|`acquireTimeoutMillis`| Time in milliseconds before timing out a database connection attempt|`Integer`| - |
57
+
|`createTimeoutMillis`| Time in milliseconds before timing out a create query attempt|`Integer`| - |
58
+
|`destroyTimeoutMillis`| Time in milliseconds before timing out a destroy query attempt|`Integer`| - |
59
+
|`idleTimeoutMillis`| Time in milliseconds before free database connections are destroyed|`Integer`| - |
60
+
|`reapIntervalMillis`| Time in milliseconds to check for idle database connections to destroy|`Integer`| - |
61
+
|`createRetryIntervalMillis`| Time in milliseconds to idle before retrying failed create actions|`Integer`| - |
61
62
|`afterCreate`| Callback function to execute custom logic when the pool acquires a new connection.<br/><br/>See the [Knex.js documentation](https://knexjs.org/#Installation-pooling) for more information |`Function`| - |
62
63
63
64
### `settings` configuration object
64
65
65
66
The `settings` object found in `./config/database.js` is used to configure Strapi-specific database settings and accepts the following parameter:
0 commit comments