mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 18:04:32 +02:00
Analyze tables options: --common-limit, --no-most, --no-least
Closes #544
This commit is contained in:
parent
e047cc32e9
commit
d2a7b15b2b
6 changed files with 178 additions and 40 deletions
10
docs/cli.rst
10
docs/cli.rst
|
|
@ -730,11 +730,15 @@ For each column this tool displays the number of null rows, the number of blank
|
|||
|
||||
If you do not specify any tables every table in the database will be analyzed::
|
||||
|
||||
$ sqlite-utils analyze-tables github.db
|
||||
sqlite-utils analyze-tables github.db
|
||||
|
||||
If you wish to analyze one or more specific columns, use the ``-c`` option::
|
||||
|
||||
$ sqlite-utils analyze-tables github.db tags -c sha
|
||||
sqlite-utils analyze-tables github.db tags -c sha
|
||||
|
||||
To show more than 10 common values, use ``--common-limit 20``. To skip the most common or least common value analysis, use ``--no-most`` or ``--no-least``::
|
||||
|
||||
sqlite-utils analyze-tables github.db tags --common-limit 20 --no-least
|
||||
|
||||
.. _cli_analyze_tables_save:
|
||||
|
||||
|
|
@ -743,7 +747,7 @@ Saving the analyzed table details
|
|||
|
||||
``analyze-tables`` can take quite a while to run for large database files. You can save the results of the analysis to a database table called ``_analyze_tables_`` using the ``--save`` option::
|
||||
|
||||
$ sqlite-utils analyze-tables github.db --save
|
||||
sqlite-utils analyze-tables github.db --save
|
||||
|
||||
The ``_analyze_tables_`` table has the following schema::
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue