Skip to content

Commit

Permalink
feat: new mssql option appName (#9213)
Browse files Browse the repository at this point in the history
  • Loading branch information
BitDesert committed Aug 24, 2022
1 parent f045536 commit 51a0ebe
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 @@ -373,6 +373,8 @@ Different RDBMS-es have their own specific options.

(default: `7_4`)

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

- `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 @@ -272,6 +272,12 @@ export interface SqlServerConnectionOptions
* A boolean, that when true will abort a query when an overflow or divide-by-zero error occurs during query execution.
*/
readonly enableArithAbort?: boolean

/**
* Application name used for identifying a specific application in profiling, logging or tracing tools of SQL Server.
* (default: node-mssql)
*/
readonly appName?: string
}

/**
Expand Down

0 comments on commit 51a0ebe

Please sign in to comment.