mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-13 03:54:23 +02:00
Start cross-linking CLI to Python docs, refs #426
This commit is contained in:
parent
1856002e3c
commit
e193aa910e
2 changed files with 92 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ The ``sqlite-utils query`` command lets you run queries directly against a SQLit
|
|||
$ sqlite-utils query dogs.db "select * from dogs"
|
||||
$ sqlite-utils dogs.db "select * from dogs"
|
||||
|
||||
.. note::
|
||||
In Python: :ref:`db.query() <python_api_query>` CLI reference: :ref:`sqlite-utils query <cli_ref_query>`
|
||||
|
||||
.. _cli_query_json:
|
||||
|
||||
Returning JSON
|
||||
|
|
@ -257,6 +260,7 @@ You can load SQLite extension modules using the ``--load-extension`` option, see
|
|||
$ sqlite-utils dogs.db "select spatialite_version()" --load-extension=spatialite
|
||||
[{"spatialite_version()": "4.3.0a"}]
|
||||
|
||||
|
||||
.. _cli_query_attach:
|
||||
|
||||
Attaching additional databases
|
||||
|
|
@ -271,6 +275,9 @@ This example attaches the ``books.db`` database under the alias ``books`` and th
|
|||
sqlite-utils dogs.db --attach books books.db \
|
||||
'select * from sqlite_master union all select * from books.sqlite_master'
|
||||
|
||||
.. note::
|
||||
In Python: :ref:`db.attach() <python_api_attach>`
|
||||
|
||||
.. _cli_memory:
|
||||
|
||||
Querying data directly using an in-memory database
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue