From b5257937cbf3942e41948194e6a3536be43e6f25 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 23 Nov 2024 11:41:49 -0800 Subject: [PATCH] Docs for sqlite_utils.db.TransformError --- docs/python-api.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/python-api.rst b/docs/python-api.rst index af6cb52..74574d1 100644 --- a/docs/python-api.rst +++ b/docs/python-api.rst @@ -1402,6 +1402,8 @@ To keep the original table around instead of dropping it, pass the ``keep_table= table.transform(types={"age": int}, keep_table="original_table") +This method raises a ``sqlite_utils.db.TransformError`` exception if the table cannot be transformed, usually because there are existing constraints or indexes that are incompatible with modifications to the columns. + .. _python_api_transform_alter_column_types: Altering column types