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

Function newConnector

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

Source from the content-addressed store, hash-verified

139};
140
141const newConnector = (connection: Connection): Connector => {
142 return {
143 testConnection: () => testConnection(connection),
144 execute: (databaseName: string, statement: string) => execute(connection, databaseName, statement),
145 getDatabases: () => getDatabases(connection),
146 getTableSchema: (databaseName: string) => getTableSchema(connection, databaseName),
147 };
148};
149
150export default newConnector;

Callers

nothing calls this directly

Calls 4

testConnectionFunction · 0.70
executeFunction · 0.70
getDatabasesFunction · 0.70
getTableSchemaFunction · 0.70

Tested by

no test coverage detected