.reset_counts() method and reset-counts command, closes #219

This commit is contained in:
Simon Willison 2021-01-03 12:59:31 -08:00
commit 0d2a47eab9
4 changed files with 56 additions and 2 deletions

View file

@ -1074,6 +1074,10 @@ The ``sqlite-utils enable-counts`` command can be used to configure these trigge
# Configure triggers just for specific tables
$ sqlite-utils enable-counts mydb.db table1 table2
If the ``_counts`` table ever becomes out-of-sync with the actual table counts you can repair it using the ``reset-counts`` command::
$ sqlite-utils reset-counts mydb.db
.. _cli_vacuum:
Vacuum