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

Function testConnection

src/lib/connectors/mysql/index.ts:47–51  ·  view source on GitHub ↗
(connection: Connection)

Source from the content-addressed store, hash-verified

45};
46
47const testConnection = async (connection: Connection): Promise<boolean> => {
48 const conn = await getMySQLConnection(connection);
49 conn.destroy();
50 return true;
51};
52
53const execute = async (connection: Connection, databaseName: string, statement: string): Promise<any> => {
54 connection.database = databaseName;

Callers 1

newConnectorFunction · 0.70

Calls 1

getMySQLConnectionFunction · 0.85

Tested by

no test coverage detected