mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-29 12:24:32 +02:00
Added sqlite-utils views command, closes #105
This commit is contained in:
parent
147b52622d
commit
344e9573ca
3 changed files with 78 additions and 2 deletions
20
docs/cli.rst
20
docs/cli.rst
|
|
@ -202,6 +202,26 @@ Use ``--schema`` to include the schema of each table::
|
|||
|
||||
The ``--nl``, ``--csv`` and ``--table`` options are all available.
|
||||
|
||||
Listing views
|
||||
=============
|
||||
|
||||
The `views` command shows any views defined in the database::
|
||||
|
||||
$ sqlite-utils views sf-trees.db --table --counts --columns --schema
|
||||
view count columns schema
|
||||
--------- ------- -------------------- --------------------------------------------------------------
|
||||
demo_view 189144 ['qSpecies'] CREATE VIEW demo_view AS select qSpecies from Street_Tree_List
|
||||
hello 1 ['sqlite_version()'] CREATE VIEW hello as select sqlite_version()
|
||||
|
||||
It takes the same options as the ``tables`` command:
|
||||
|
||||
* ``--columns``
|
||||
* ``--schema``
|
||||
* ``--counts``
|
||||
* ``--nl``
|
||||
* ``--csv``
|
||||
* ``--table``
|
||||
|
||||
.. _cli_inserting_data:
|
||||
|
||||
Inserting JSON data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue