Merge pull request #10 from knvpk/main

MySQL Adaptor: Using information_schema to get list of tables
This commit is contained in:
ExecuteAutomation
2025-07-03 08:39:08 +12:00
committed by GitHub

View File

@@ -133,7 +133,7 @@ export class MysqlAdapter implements DbAdapter {
* Get database-specific query for listing tables
*/
getListTablesQuery(): string {
return "SHOW TABLES";
return `SELECT table_name AS name FROM information_schema.tables WHERE table_schema = '${this.database}'`;
}
/**