MCPcopy Create free account
hub / github.com/cmoog/vscode-sql-notebook / mssqlPool

Function mssqlPool

src/driver.ts:322–332  ·  view source on GitHub ↗
(pool: mssql.ConnectionPool)

Source from the content-addressed store, hash-verified

320}
321
322function 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
334function mssqlConn(req: mssql.Request): Conn {
335 return {

Callers 1

createMSSQLPoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected