From 0d21a4d07ec275a295df6f78b85c4814c027258a Mon Sep 17 00:00:00 2001 From: James Ward Date: Fri, 9 Jul 2021 12:54:45 -0400 Subject: [PATCH] fix: drop pool.autostart from mssql options because it's unused (#7877) --- docs/connection-options.md | 2 -- docs/zh_CN/connection-options.md | 2 -- src/driver/sqlserver/SqlServerConnectionOptions.ts | 5 ----- 3 files changed, 9 deletions(-) diff --git a/docs/connection-options.md b/docs/connection-options.md index 9c590de341..50c87889ea 100644 --- a/docs/connection-options.md +++ b/docs/connection-options.md @@ -271,8 +271,6 @@ See [SSL options](https://github.com/mysqljs/mysql#ssl-options). * `pool.priorityRange` - int between 1 and x - if set, borrowers can specify their relative priority in the queue if no resources are available. see example. (default `1`). - -* `pool.autostart` - boolean, should the pool start creating resources etc once the constructor is called, (default `true`). * `pool.evictionRunIntervalMillis` - How often to run eviction checks. Default: `0` (does not run). diff --git a/docs/zh_CN/connection-options.md b/docs/zh_CN/connection-options.md index 5523bc6afb..eacd10a987 100644 --- a/docs/zh_CN/connection-options.md +++ b/docs/zh_CN/connection-options.md @@ -192,8 +192,6 @@ - `pool.priorityRange` - 1和x之间的int值 - 如果设置了且没有可用资源,则borrowers可以在队列中指定其相对优先级(默认 `1`)。 -- `pool.autostart` - 布尔值,一旦调用构造函数,池应该开始创建资源等(默认为`true`)。 - - `pool.victionRunIntervalMillis` - 多久检查一次eviction checks。 默认值:`0`(不运行)。 - `pool.numTestsPerRun` - 每次eviction checks资源数量。 默认值:`3`。 diff --git a/src/driver/sqlserver/SqlServerConnectionOptions.ts b/src/driver/sqlserver/SqlServerConnectionOptions.ts index 79682429fe..70fd21cc91 100644 --- a/src/driver/sqlserver/SqlServerConnectionOptions.ts +++ b/src/driver/sqlserver/SqlServerConnectionOptions.ts @@ -79,11 +79,6 @@ export interface SqlServerConnectionOptions extends BaseConnectionOptions, SqlSe */ readonly priorityRange?: number; - /** - * Should the pool start creating resources etc once the constructor is called, (default true) - */ - readonly autostart?: number; - /** * How often to run eviction checks. Default: 0 (does not run). */