mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 01:44:31 +02:00
First CLI command: sqlite-utils table_names test.db
This commit is contained in:
parent
8437fe3091
commit
fd5829b27d
4 changed files with 60 additions and 3 deletions
17
docs/cli.rst
Normal file
17
docs/cli.rst
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
.. _python_api:
|
||||
|
||||
================================
|
||||
sqlite-utils command-line tool
|
||||
================================
|
||||
|
||||
The ``sqlite-utils`` command-line tool can be used to manipulate SQLite databases in a number of different ways.
|
||||
|
||||
Listing tables
|
||||
==============
|
||||
|
||||
You can list the names of tables in a database using the ``table_names`` subcommand::
|
||||
|
||||
$ sqlite-utils table_names mydb.db
|
||||
dogs
|
||||
cats
|
||||
chickens
|
||||
|
|
@ -17,6 +17,7 @@ Contents
|
|||
:maxdepth: 2
|
||||
|
||||
python-api
|
||||
cli
|
||||
changelog
|
||||
|
||||
Take a look at `this script <https://github.com/simonw/russian-ira-facebook-ads-datasette/blob/master/fetch_and_build_russian_ads.py>`_ for an example of this library in action.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue