Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add multiSubnetFailover option for mssql #10804

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/data-source-options.md
Expand Up @@ -384,6 +384,8 @@ Based on [tedious](https://tediousjs.github.io/node-mssql/) MSSQL implementation

- `options.trustServerCertificate` - A boolean, controlling whether encryption occurs if there is no verifiable server certificate. (default: `false`)

- `options.multiSubnetFailover` - A boolean, controlling whether the driver should connect to all IPs return in DNS in parallel. (default: `false`)

- `options.debug.packet` - A boolean, controlling whether `debug` events will be emitted with text describing packet
details (default: `false`).

Expand Down
6 changes: 6 additions & 0 deletions src/driver/sqlserver/SqlServerConnectionOptions.ts
Expand Up @@ -290,6 +290,12 @@ export interface SqlServerConnectionOptions
* (default: false)
*/
readonly trustServerCertificate?: boolean

/**
* A boolean, controlling whether the driver should connect to all IPs return in DNS in parallel.
* (default: false)
*/
readonly multiSubnetFailover?: boolean
}

/**
Expand Down