mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 01:44:31 +02:00
parent
c449064297
commit
3e87500e15
4 changed files with 34 additions and 0 deletions
|
|
@ -903,6 +903,16 @@ class Table(Queryable):
|
|||
table=fts_table
|
||||
)
|
||||
)
|
||||
self.db.conn.execute(
|
||||
"""
|
||||
DELETE FROM [{table}_docsize] WHERE {column} NOT IN (
|
||||
SELECT rowid FROM [{table}]);
|
||||
""".format(
|
||||
# FTS5 uses 'id' but FTS4 uses 'docid'
|
||||
column=self.db["{}_docsize".format(fts_table)].columns[0].name,
|
||||
table=fts_table,
|
||||
)
|
||||
)
|
||||
return self
|
||||
|
||||
def search(self, q):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue