db[table].create(..., transform=True) and create-table --transform

Closes #467
This commit is contained in:
Simon Willison 2022-08-27 16:17:55 -07:00 committed by GitHub
commit 104f37fa4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 189 additions and 11 deletions

View file

@ -1520,6 +1520,8 @@ You can specify foreign key relationships between the tables you are creating us
If a table with the same name already exists, you will get an error. You can choose to silently ignore this error with ``--ignore``, or you can replace the existing table with a new, empty table using ``--replace``.
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.
.. _cli_duplicate_table:
Duplicating tables