Hidden tables sqlite1/2/3/4, closes #1587

This commit is contained in:
Simon Willison 2022-01-19 20:12:46 -08:00
commit 58652dd925
2 changed files with 15 additions and 1 deletions

View file

@ -345,7 +345,9 @@ class Database:
"""
select name from sqlite_master
where rootpage = 0
and sql like '%VIRTUAL TABLE%USING FTS%'
and (
sql like '%VIRTUAL TABLE%USING FTS%'
) or name in ('sqlite_stat1', 'sqlite_stat2', 'sqlite_stat3', 'sqlite_stat4')
"""
)
).rows