fix(SQLite): tables with sqlite in name not visible, closes #239

This commit is contained in:
Fabio Di Stasio 2022-04-22 23:01:30 +02:00
parent 3450497010
commit 690cdcb2eb
1 changed files with 9 additions and 1 deletions

View File

@ -71,7 +71,7 @@ export class SQLiteClient extends AntaresCore {
SELECT *
FROM "${db.name}".sqlite_master
WHERE type IN ('table', 'view')
AND name NOT LIKE 'sqlite_%'
AND name NOT LIKE 'sqlite\\_%' ESCAPE '\\'
ORDER BY name
`);
if (tables.length) {
@ -743,4 +743,12 @@ export class SQLiteClient extends AntaresCore {
return result as unknown as T;
}
getVariables (): null[] {
return [];
}
getCollations (): null[] {
return [];
}
}