Skip to content

Commit

Permalink
fix: drop pool.autostart from mssql options because it's unused (#7877)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnotjames committed Jul 9, 2021
1 parent dcdaaca commit 0d21a4d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
2 changes: 0 additions & 2 deletions docs/connection-options.md
Expand Up @@ -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).

Expand Down
2 changes: 0 additions & 2 deletions docs/zh_CN/connection-options.md
Expand Up @@ -192,8 +192,6 @@

- `pool.priorityRange` - 1和x之间的int值 - 如果设置了且没有可用资源,则borrowers可以在队列中指定其相对优先级(默认 `1`)。

- `pool.autostart` - 布尔值,一旦调用构造函数,池应该开始创建资源等(默认为`true`)。

- `pool.victionRunIntervalMillis` - 多久检查一次eviction checks。 默认值:`0`(不运行)。

- `pool.numTestsPerRun` - 每次eviction checks资源数量。 默认值:`3`
Expand Down
5 changes: 0 additions & 5 deletions src/driver/sqlserver/SqlServerConnectionOptions.ts
Expand Up @@ -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).
*/
Expand Down

0 comments on commit 0d21a4d

Please sign in to comment.