mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-24 09:54:31 +02:00
sqlite-utils dump command, closes #274
This commit is contained in:
parent
fe1562e8a6
commit
ca2b26130f
3 changed files with 35 additions and 0 deletions
13
docs/cli.rst
13
docs/cli.rst
|
|
@ -1256,6 +1256,19 @@ You can disable WAL mode using ``disable-wal``::
|
|||
|
||||
Both of these commands accept one or more database files as arguments.
|
||||
|
||||
.. _cli_dump:
|
||||
|
||||
Dumping the database to SQL
|
||||
===========================
|
||||
|
||||
The ``dump`` command outputs a SQL dump of the schema and full contents of the specified database file::
|
||||
|
||||
$ sqlite-utils dump mydb.db
|
||||
BEGIN TRANSACTION;
|
||||
CREATE TABLE ...
|
||||
...
|
||||
COMMIT;
|
||||
|
||||
.. _cli_load_extension:
|
||||
|
||||
Loading SQLite extensions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue