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

Function testConnection

src/lib/connectors/postgres/index.ts:53–57  ·  view source on GitHub ↗
(connection: Connection)

Source from the content-addressed store, hash-verified

51};
52
53const testConnection = async (connection: Connection): Promise<boolean> => {
54 const client = await newPostgresClient(connection);
55 await client.end();
56 return true;
57};
58
59const execute = async (connection: Connection, databaseName: string, statement: string): Promise<any> => {
60 connection.database = databaseName;

Callers 1

newConnectorFunction · 0.70

Calls 1

newPostgresClientFunction · 0.85

Tested by

no test coverage detected