mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 09:24:31 +02:00
24 lines
524 B
ReStructuredText
24 lines
524 B
ReStructuredText
.. _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
|
|
|
|
Vacuum
|
|
======
|
|
|
|
You can run VACUUM to optimize your database like so::
|
|
|
|
$ sqlite-utils vacuum mydb.db
|