From bcac0c476b9d2df0d5ef035236e000c3c0d75eaf Mon Sep 17 00:00:00 2001 From: mytharcher Date: Sat, 25 Oct 2025 10:53:11 +0800 Subject: [PATCH] docs: db pool options in env --- docs/en-US/welcome/getting-started/env.md | 24 +++++++++++++++++++++++ docs/fr-FR/welcome/getting-started/env.md | 24 +++++++++++++++++++++++ docs/ja-JP/welcome/getting-started/env.md | 24 +++++++++++++++++++++++ docs/ru-RU/welcome/getting-started/env.md | 23 ++++++++++++++++++++++ docs/zh-CN/welcome/getting-started/env.md | 24 +++++++++++++++++++++++ 5 files changed, 119 insertions(+) diff --git a/docs/en-US/welcome/getting-started/env.md b/docs/en-US/welcome/getting-started/env.md index 4e74d12ece..521f131157 100644 --- a/docs/en-US/welcome/getting-started/env.md +++ b/docs/en-US/welcome/getting-started/env.md @@ -194,6 +194,30 @@ Database log switch, default is `off`, options include DB_LOGGING=on ``` +### DB_POOL_MAX + +Maximum number of connection in pool. Default is `5`. + +### DB_POOL_MIN + +Minimum number of connection in pool. Default is `0`. + +### DB_POOL_IDLE + +The maximum time, in milliseconds, that a connection can be idle before being released. Default is `10000` (10 seconds). + +### DB_POOL_ACQUIRE + +The maximum time, in milliseconds, that pool will try to get connection before throwing error. Default is `60000` (60 seconds). + +### DB_POOL_EVICT + +The time interval, in milliseconds, after which sequelize-pool will remove idle connections. Default is `1000` (1 second). + +### DB_POOL_MAX_USES + +The number of times a connection can be used before discarding it for a replacement. Default is `0` (unlimited). + ### LOGGER_TRANSPORT Log output method,separated by `,` 。Default is `console` in development, `console,dailyRotateFile` in production. diff --git a/docs/fr-FR/welcome/getting-started/env.md b/docs/fr-FR/welcome/getting-started/env.md index bbee012705..64e7f070e9 100644 --- a/docs/fr-FR/welcome/getting-started/env.md +++ b/docs/fr-FR/welcome/getting-started/env.md @@ -192,6 +192,30 @@ Commutateur de journal de base de données, la valeur par défaut est `off`, les DB_LOGGING=on ``` +### DB_POOL_MAX + +Maximum number of connection in pool. Default is `5`. + +### DB_POOL_MIN + +Minimum number of connection in pool. Default is `0`. + +### DB_POOL_IDLE + +The maximum time, in milliseconds, that a connection can be idle before being released. Default is `10000` (10 seconds). + +### DB_POOL_ACQUIRE + +The maximum time, in milliseconds, that pool will try to get connection before throwing error. Default is `60000` (60 seconds). + +### DB_POOL_EVICT + +The time interval, in milliseconds, after which sequelize-pool will remove idle connections. Default is `1000` (1 second). + +### DB_POOL_MAX_USES + +The number of times a connection can be used before discarding it for a replacement. Default is `0` (unlimited). + ### LOGGER_TRANSPORT Mode de sortie du journal, séparez plusieurs entrées par `,`. La valeur par défaut pour l'environnement de développement est `console` et la valeur par défaut pour l'environnement de production est `console,dailyRotateFile`. diff --git a/docs/ja-JP/welcome/getting-started/env.md b/docs/ja-JP/welcome/getting-started/env.md index 5e0ffe31cc..ae3c4a202c 100644 --- a/docs/ja-JP/welcome/getting-started/env.md +++ b/docs/ja-JP/welcome/getting-started/env.md @@ -208,6 +208,30 @@ DB_TABLE_PREFIX=nocobase_ DB_LOGGING=on ``` +### DB_POOL_MAX + +Maximum number of connection in pool. Default is `5`. + +### DB_POOL_MIN + +Minimum number of connection in pool. Default is `0`. + +### DB_POOL_IDLE + +The maximum time, in milliseconds, that a connection can be idle before being released. Default is `10000` (10 seconds). + +### DB_POOL_ACQUIRE + +The maximum time, in milliseconds, that pool will try to get connection before throwing error. Default is `60000` (60 seconds). + +### DB_POOL_EVICT + +The time interval, in milliseconds, after which sequelize-pool will remove idle connections. Default is `1000` (1 second). + +### DB_POOL_MAX_USES + +The number of times a connection can be used before discarding it for a replacement. Default is `0` (unlimited). + ### LOGGER_TRANSPORT ログ出力方法。複数の場合は `,` で区切ります。開発環境のデフォルト値は `console`、本番環境のデフォルト値は `console,dailyRotateFile` です。選択肢: diff --git a/docs/ru-RU/welcome/getting-started/env.md b/docs/ru-RU/welcome/getting-started/env.md index d33359b64f..0c196b9c7d 100644 --- a/docs/ru-RU/welcome/getting-started/env.md +++ b/docs/ru-RU/welcome/getting-started/env.md @@ -205,6 +205,29 @@ Database log switch, default is `off`, options include DB_LOGGING=on ``` +### DB_POOL_MAX + +Maximum number of connection in pool. Default is `5`. + +### DB_POOL_MIN + +Minimum number of connection in pool. Default is `0`. + +### DB_POOL_IDLE + +The maximum time, in milliseconds, that a connection can be idle before being released. Default is `10000` (10 seconds). + +### DB_POOL_ACQUIRE + +The maximum time, in milliseconds, that pool will try to get connection before throwing error. Default is `60000` (60 seconds). + +### DB_POOL_EVICT + +The time interval, in milliseconds, after which sequelize-pool will remove idle connections. Default is `1000` (1 second). + +### DB_POOL_MAX_USES + +The number of times a connection can be used before discarding it for a replacement. Default is `0` (unlimited). ### LOGGER_TRANSPORT diff --git a/docs/zh-CN/welcome/getting-started/env.md b/docs/zh-CN/welcome/getting-started/env.md index 259332d981..a577d78872 100644 --- a/docs/zh-CN/welcome/getting-started/env.md +++ b/docs/zh-CN/welcome/getting-started/env.md @@ -206,6 +206,30 @@ DB_TABLE_PREFIX=nocobase_ DB_LOGGING=on ``` +### DB_POOL_MAX + +数据库连接池最大连接数,默认值 `5`。 + +### DB_POOL_MIN + +数据库连接池最小连接数,默认值 `0`。 + +### DB_POOL_IDLE + +数据库连接池空闲时间,默认值 `10000`(10 秒)。 + +### DB_POOL_ACQUIRE + +数据库连接池获取连接最大等待时间,默认值 `60000`(60 秒)。 + +### DB_POOL_EVICT + +数据库连接池连接最大存活时间,默认值 `1000`(1 秒)。 + +### DB_POOL_MAX_USES + +连接在被丢弃并替换之前可被使用的次数,默认值 `0`(不限制)。 + ### LOGGER_TRANSPORT 日志输出方式,多个用 `,` 分隔。开发环境默认值 `console`, 生产环境默认值 `console,dailyRotateFile`.