fix: add multiSubnetFailover option for mssql (#10804)

This commit is contained in:
Isara Rungvitayakul 2025-09-25 06:18:15 +07:00 committed by GitHub
parent d4f7b44fdf
commit 83e3a8a3db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View File

@ -149,6 +149,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 returned from DNS in parallel. (default: `false`)
- `options.debug.packet` - A boolean, controlling whether `debug` events will be emitted with text describing packet
details (default: `false`).

View File

@ -290,6 +290,12 @@ export interface SqlServerConnectionOptions
* (default: false)
*/
readonly trustServerCertificate?: boolean
/**
* A boolean, controlling whether the driver should connect to all IPs returned from DNS in parallel.
* (default: false)
*/
readonly multiSubnetFailover?: boolean
}
/**