Fix tests I just broke

This commit is contained in:
Simon Willison 2026-05-28 09:03:10 -07:00
commit 2785fd29de
3 changed files with 65 additions and 37 deletions

View file

@ -16,7 +16,7 @@ _cached_sqlite_version = None
SQLiteTableType = Literal["table", "view", "virtual", "shadow"]
_VIRTUAL_TABLE_MODULE_RE = re.compile(
r"\bCREATE\s+VIRTUAL\s+TABLE\b.*?\bUSING\s+([^\s(]+)",
re.IGNORECASE,
re.IGNORECASE | re.DOTALL,
)
_VIRTUAL_TABLE_SHADOW_SUFFIXES = {
"fts3": ("_content", "_segdir", "_segments", "_stat", "_docsize"),