Skip to content

Commit 70d1b96

Browse files
Merge pull request #10 from knvpk/main
MySQL Adaptor: Using information_schema to get list of tables
2 parents 92bb821 + ace3609 commit 70d1b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/mysql-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export class MysqlAdapter implements DbAdapter {
133133
* Get database-specific query for listing tables
134134
*/
135135
getListTablesQuery(): string {
136-
return "SHOW TABLES";
136+
return `SELECT table_name AS name FROM information_schema.tables WHERE table_schema = '${this.database}'`;
137137
}
138138

139139
/**

0 commit comments

Comments
 (0)