mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
FTS tables now detected by inspect(), closes #240
This commit is contained in:
parent
f188ceaa2a
commit
aa954382c3
3 changed files with 22 additions and 8 deletions
|
|
@ -427,7 +427,7 @@ def detect_spatialite(conn):
|
|||
return len(rows) > 0
|
||||
|
||||
|
||||
def detect_fts(conn, table, return_sql=False):
|
||||
def detect_fts(conn, table):
|
||||
"Detect if table has a corresponding FTS virtual table and return it"
|
||||
rows = conn.execute(detect_fts_sql(table)).fetchall()
|
||||
if len(rows) == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue