From db1e08c2c89ac8e93bf8650a69f7ec6585c9b804 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 5 Aug 2020 19:21:49 -0700 Subject: [PATCH] Documentation for table.detect_fts() method --- docs/python-api.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/python-api.rst b/docs/python-api.rst index 496bff7..75ecca0 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -1093,6 +1093,13 @@ The ``.triggers`` property lists database triggers. It can be used on both datab >>> db.triggers ... similar output to db["authors"].triggers +The ``detect_fts()`` method returns the associated SQLite FTS table name, if one exists for this table. If the table has not been configured for full-text search it returns ``None``. + +:: + + >> db["authors"].detect_fts() + "authors_fts" + .. _python_api_fts: Enabling full-text search