Documentation for create-triggers, refs #57

This commit is contained in:
Simon Willison 2019-09-02 17:10:26 -07:00
commit 3a4dddaca2
2 changed files with 10 additions and 0 deletions

View file

@ -379,6 +379,10 @@ The ``enable-fts`` command will populate the new index with all existing documen
$ sqlite-utils populate-fts mydb.db documents title summary
A better solution here is to use database triggers. You can set up database triggers to automatically update the full-text index using the ``--create-triggers`` option when you first run ``enable-fts``::
$ sqlite-utils enable-fts mydb.db documents title summary --create-triggers
Vacuum
======