(connection: Connection)
| 139 | }; |
| 140 | |
| 141 | const 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 | |
| 150 | export default newConnector; |
nothing calls this directly
no test coverage detected