You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli.rst
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1936,6 +1936,19 @@ If a table with the same name already exists, you will get an error. You can cho
1936
1936
1937
1937
You can also pass ``--transform`` to transform the existing table to match the new schema. See :ref:`python_api_explicit_create` in the Python library documentation for details of how this option works.
1938
1938
1939
+
.. _cli_renaming_tables:
1940
+
1941
+
Renaming a table
1942
+
================
1943
+
1944
+
Yo ucan rename a table using the ``rename-table`` command:
1945
+
1946
+
.. code-block:: bash
1947
+
1948
+
sqlite-utils rename-table mydb.db oldname newname
1949
+
1950
+
Pass ``--ignore`` to ignore any errors caused by the table not existing, or the new name already being in use.
0 commit comments