mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-29 12:24:32 +02:00
sqlite-utils rename-table command, refs #565
This commit is contained in:
parent
82e8cd3667
commit
18f190e283
4 changed files with 93 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ This page lists the ``--help`` for every ``sqlite-utils`` CLI sub-command.
|
|||
"vacuum": "cli_vacuum",
|
||||
"dump": "cli_dump",
|
||||
"add-column": "cli_add_column",
|
||||
"rename-table": "cli_renaming_tables",
|
||||
"duplicate": "cli_duplicate_table",
|
||||
"add-foreign-key": "cli_add_foreign_key",
|
||||
"add-foreign-keys": "cli_add_foreign_keys",
|
||||
"index-foreign-keys": "cli_index_foreign_keys",
|
||||
|
|
@ -1328,6 +1330,8 @@ reset-counts
|
|||
duplicate
|
||||
=========
|
||||
|
||||
See :ref:`cli_duplicate_table`.
|
||||
|
||||
::
|
||||
|
||||
Usage: sqlite-utils duplicate [OPTIONS] PATH TABLE NEW_TABLE
|
||||
|
|
@ -1340,6 +1344,25 @@ duplicate
|
|||
-h, --help Show this message and exit.
|
||||
|
||||
|
||||
.. _cli_ref_rename_table:
|
||||
|
||||
rename-table
|
||||
============
|
||||
|
||||
See :ref:`cli_renaming_tables`.
|
||||
|
||||
::
|
||||
|
||||
Usage: sqlite-utils rename-table [OPTIONS] PATH TABLE NEW_NAME
|
||||
|
||||
Rename this table.
|
||||
|
||||
Options:
|
||||
--ignore If table does not exist, do nothing
|
||||
--load-extension TEXT Path to SQLite extension, with optional :entrypoint
|
||||
-h, --help Show this message and exit.
|
||||
|
||||
|
||||
.. _cli_ref_drop_table:
|
||||
|
||||
drop-table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue