@@ -43,13 +43,9 @@ export class MssqlDriver implements Driver {
4343 this . #config = freeze ( { ...config } )
4444
4545 const { tarn, tedious, validateConnections } = this . #config
46- const {
47- validateConnections : deprecatedValidateConnections ,
48- ...poolOptions
49- } = tarn . options
5046
5147 this . #pool = new tarn . Pool ( {
52- ...poolOptions ,
48+ ...tarn . options ,
5349 create : async ( ) => {
5450 const connection = await tedious . connectionFactory ( )
5551
@@ -61,8 +57,7 @@ export class MssqlDriver implements Driver {
6157 // @ts -ignore `tarn` accepts a function that returns a promise here, but
6258 // the types are not aligned and it type errors.
6359 validate :
64- validateConnections === false ||
65- ( deprecatedValidateConnections as any ) === false
60+ validateConnections === false
6661 ? undefined
6762 : ( connection ) => connection [ PRIVATE_VALIDATE_METHOD ] ( ) ,
6863 } )
@@ -106,10 +101,7 @@ export class MssqlDriver implements Driver {
106101 }
107102
108103 async releaseConnection ( connection : MssqlConnection ) : Promise < void > {
109- if (
110- this . #config. resetConnectionsOnRelease ||
111- this . #config. tedious . resetConnectionOnRelease
112- ) {
104+ if ( this . #config. resetConnectionsOnRelease ) {
113105 await connection [ PRIVATE_RESET_METHOD ] ( )
114106 }
115107
@@ -126,7 +118,6 @@ class MssqlConnection implements DatabaseConnection {
126118 #hasSocketError: boolean
127119 readonly #tedious: Tedious
128120 #inflightRequest: MssqlRequest < any > | undefined
129- #sessionId: unknown
130121
131122 constructor ( connection : TediousConnection , tedious : Tedious ) {
132123 this . #connection = connection
0 commit comments