(pool: mssql.ConnectionPool)
| 320 | } |
| 321 | |
| 322 | function mssqlPool(pool: mssql.ConnectionPool): Pool { |
| 323 | return { |
| 324 | async getConnection(): Promise<Conn> { |
| 325 | const req = new mssql.Request(); |
| 326 | return mssqlConn(req); |
| 327 | }, |
| 328 | end() { |
| 329 | pool.close(); |
| 330 | }, |
| 331 | }; |
| 332 | } |
| 333 | |
| 334 | function mssqlConn(req: mssql.Request): Conn { |
| 335 | return { |