mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
771b0ee347
commit
0331666e34
1 changed files with 5 additions and 2 deletions
|
|
@ -221,8 +221,11 @@ def detect_fts_sql(table):
|
||||||
return r'''
|
return r'''
|
||||||
select name from sqlite_master
|
select name from sqlite_master
|
||||||
where rootpage = 0
|
where rootpage = 0
|
||||||
and sql like '%VIRTUAL TABLE%USING FTS%content="{}"%';
|
and (
|
||||||
'''.format(table)
|
sql like '%VIRTUAL TABLE%USING FTS%content="{table}"%'
|
||||||
|
or tbl_name = "{table}"
|
||||||
|
)
|
||||||
|
'''.format(table=table)
|
||||||
|
|
||||||
|
|
||||||
class Filter:
|
class Filter:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue