@@ -55,7 +55,7 @@ class PrivateConnection {
5555 open ( ) {
5656 this . nf . validateParameters ( this . validationParams ( ) , this . parentFn )
5757 this . callback2 = this . callback2 || this . defaultCallback
58- this . native . open ( this . connectObj , ( e , c ) => this . queueCb ( e , c ) )
58+ this . native . open ( this . connectObj , ( e , c ) => { this . queueCb ( e , c ) } )
5959 }
6060
6161 decodeSqlServerVersion ( connectionString ) {
@@ -75,47 +75,47 @@ class ConnectionWrapperPromises extends BasePromises {
7575 this . aggregator = new utilModule . QueryAggregator ( connection )
7676 }
7777
78- callProc ( name , params , options ) {
78+ async callProc ( name , params , options ) {
7979 return this . aggregator . callProc ( name , params , options )
8080 }
8181
82- query ( sql , params , options ) {
82+ async query ( sql , params , options ) {
8383 return this . aggregator . query ( sql , params , options )
8484 }
8585
86- getTable ( name ) {
86+ async getTable ( name ) {
8787 return this . op ( cb => this . tm . getTable ( name , cb ) )
8888 }
8989
90- getProc ( name ) {
90+ async getProc ( name ) {
9191 return this . op ( cb => this . pm . getProc ( name , cb ) )
9292 }
9393
94- getUserTypeTable ( type ) {
94+ async getUserTypeTable ( type ) {
9595 return this . op ( cb => this . connection . getUserTypeTable ( type , cb ) )
9696 }
9797
98- cancel ( q ) {
98+ async cancel ( q ) {
9999 return this . op ( cb => this . connection . cancel ( q , cb ) )
100100 }
101101
102- close ( ) {
102+ async close ( ) {
103103 return this . op ( cb => this . connection . close ( cb ) )
104104 }
105105
106- prepare ( sqlQuery ) {
106+ async prepare ( sqlQuery ) {
107107 return this . op ( cb => this . connection . prepare ( sqlQuery , cb ) )
108108 }
109109
110- beginTransaction ( ) {
110+ async beginTransaction ( ) {
111111 return this . op ( cb => this . connection . beginTransaction ( cb ) )
112112 }
113113
114- commit ( ) {
114+ async commit ( ) {
115115 return this . op ( cb => this . connection . commit ( cb ) )
116116 }
117117
118- rollback ( ) {
118+ async rollback ( ) {
119119 return this . op ( cb => this . connection . rollback ( cb ) )
120120 }
121121}
@@ -146,7 +146,7 @@ class ConnectionWrapper {
146146 }
147147
148148 getUserTypeTable ( name , callback ) {
149- return this . tables . getUserTypeTable ( name , callback )
149+ this . tables . getUserTypeTable ( name , callback )
150150 }
151151
152152 tableMgr ( ) {
@@ -242,7 +242,7 @@ class ConnectionWrapper {
242242 }
243243
244244 if ( chunky . callback ) {
245- return this . queryRawNotify ( notify , queryOrObj , this . notifier . getChunkyArgs ( chunky . params , ( err , results , more ) => {
245+ this . queryRawNotify ( notify , queryOrObj , this . notifier . getChunkyArgs ( chunky . params , ( err , results , more ) => {
246246 setImmediate ( ( ) => {
247247 onQueryRaw ( err , results , more )
248248 } )
@@ -371,11 +371,11 @@ class ConnectionWrapper {
371371 }
372372
373373 getTable ( name , cb ) {
374- return this . tables . getTable ( name , cb )
374+ this . tables . getTable ( name , cb )
375375 }
376376
377377 // returns a promise of aggregated results not a query
378- callprocAggregator ( name , params , options ) {
378+ async callprocAggregator ( name , params , options ) {
379379 return this . promises . callProc ( name , params , options )
380380 }
381381}
0 commit comments