Skip to content

Commit e1fe9da

Browse files
committed
skip sqlite_-prefixed tables
1 parent 654e550 commit e1fe9da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class SQLiteDatabaseClient {
3232
]);
3333
}
3434
async describeTables({schema} = {}) {
35-
return this.query(`SELECT schema, name FROM pragma_table_list() WHERE type = 'table'${schema == null ? "" : ` AND schema = ?`}`, schema == null ? [] : [schema]);
35+
return this.query(`SELECT schema, name FROM pragma_table_list() WHERE type = 'table'${schema == null ? "" : ` AND schema = ?`} AND name NOT LIKE 'sqlite_%'`, schema == null ? [] : [schema]);
3636
}
3737
async describeColumns({schema, table} = {}) {
3838
if (table == null) throw new Error(`missing table`);

0 commit comments

Comments
 (0)