MySQL Adaptor: Using information_schema to get list of tables

This commit is contained in:
pavankumar
2025-06-28 19:06:27 +05:30
parent 92bb8217cb
commit ace360969a

View File

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