1
1
mirror of https://github.com/Fabio286/antares.git synced 2024-12-17 19:31:26 +01:00

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

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 [];
}
}