mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
table.virtual_table_using property, closes #196
This commit is contained in:
parent
43eae8b193
commit
59d8689ed0
3 changed files with 81 additions and 1 deletions
|
|
@ -1430,6 +1430,12 @@ The ``detect_fts()`` method returns the associated SQLite FTS table name, if one
|
|||
>> db["authors"].detect_fts()
|
||||
"authors_fts"
|
||||
|
||||
The ``.virtual_table_using`` property reveals if a table is a virtual table. It returns ``None`` for regular tables and the upper case version of the type of virtual table otherwise. For example::
|
||||
|
||||
>> db["authors"].enable_fts(["name"])
|
||||
>> db["authors_fts"].virtual_table_using
|
||||
"FTS5"
|
||||
|
||||
.. _python_api_fts:
|
||||
|
||||
Enabling full-text search
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue