Skip to content

Commit

Permalink
fix: add trustServerCertificate option to `SqlServerConnectionOptio…
Browse files Browse the repository at this point in the history
…ns` (#9985)

* fix: add missing 'trustServerCertificate' option to SqlServerConnectionOptions interface

Closes: #8093

* docs: add `trustServerCertificate` description to mssql data source options docs

* fix: consistency between jsdoc and docs

---------

Co-authored-by: jrybarczyk <[email protected]>
  • Loading branch information
99xtal and jrybarczyker authored May 9, 2023
1 parent 21a9d67 commit 0305805
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/data-source-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ Different RDBMS-es have their own specific options.

- `options.appName` - Application name used for identifying a specific application in profiling, logging or tracing tools of SQL Server. (default: `node-mssql`)

- `options.trustServerCertificate` - A boolean, controlling whether encryption occurs if there is no verifiable server certificate. (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
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ export interface SqlServerConnectionOptions
* (default: node-mssql)
*/
readonly appName?: string

/**
* A boolean, controlling whether encryption occurs if there is no verifiable server certificate.
* (default: false)
*/
readonly trustServerCertificate?: boolean
}

/**
Expand Down

0 comments on commit 0305805

Please sign in to comment.