Hide tables starting with an _, refs #2104

This commit is contained in:
Simon Willison 2024-03-07 00:03:42 -05:00
commit 7818e8b9d1
3 changed files with 31 additions and 0 deletions

View file

@ -469,6 +469,7 @@ class Database:
and (
sql like '%VIRTUAL TABLE%USING FTS%'
) or name in ('sqlite_stat1', 'sqlite_stat2', 'sqlite_stat3', 'sqlite_stat4')
or name like '\\_%' escape '\\'
"""
)
).rows