mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 17:34:32 +02:00
sqlite-utils create-database command, closes #348
This commit is contained in:
parent
f08fe6fd4d
commit
1d64cd2e5b
3 changed files with 48 additions and 0 deletions
13
docs/cli.rst
13
docs/cli.rst
|
|
@ -699,6 +699,19 @@ The ``most_common`` and ``least_common`` columns will contain nested JSON arrays
|
|||
["Condarco", 4288]
|
||||
]
|
||||
|
||||
.. _cli_create_database:
|
||||
|
||||
Creating an empty database
|
||||
==========================
|
||||
|
||||
You can create a new empty database file using the ``create-database`` command::
|
||||
|
||||
$ sqlite-utils create-database empty.db
|
||||
|
||||
To enable :ref:`cli_wal` on the newly created database add the ``--enable-wal`` option::
|
||||
|
||||
$ sqlite-utils create-database empty.db --enable-wal
|
||||
|
||||
.. _cli_inserting_data:
|
||||
|
||||
Inserting JSON data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue