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

Function mysqlPool

src/driver.ts:173–182  ·  view source on GitHub ↗
(pool: mysql.Pool, queryTimeout: number)

Source from the content-addressed store, hash-verified

171}
172
173function mysqlPool(pool: mysql.Pool, queryTimeout: number): Pool {
174 return {
175 async getConnection(): Promise<Conn> {
176 return mysqlConn(await pool.getConnection(), queryTimeout);
177 },
178 end() {
179 pool.end();
180 },
181 };
182}
183
184function mysqlConn(conn: mysql.PoolConnection, queryTimeout: number): Conn {
185 return {

Callers 1

createMySQLPoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected