MCPcopy Create free account
hub / github.com/sqlchat/sqlchat / testConnection

Function testConnection

src/lib/connectors/mssql/index.ts:29–33  ·  view source on GitHub ↗
(connection: Connection)

Source from the content-addressed store, hash-verified

27};
28
29const testConnection = async (connection: Connection): Promise<boolean> => {
30 const pool = await getMSSQLConnection(connection);
31 await pool.close();
32 return true;
33};
34
35const execute = async (connection: Connection, databaseName: string, statement: string): Promise<any> => {
36 const pool = await getMSSQLConnection(connection);

Callers 1

newConnectorFunction · 0.70

Calls 1

getMSSQLConnectionFunction · 0.85

Tested by

no test coverage detected