kopia lustrzana https://github.com/simonw/datasette
rodzic
771b0ee347
commit
0331666e34
|
@ -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:
|
||||||
|
|
Ładowanie…
Reference in New Issue