From 521a3978c7b97e5299fd4ecb00fea8dde75a94c7 Mon Sep 17 00:00:00 2001 From: Rami Abdelrazzaq Date: Sat, 7 Mar 2026 13:18:10 -0600 Subject: [PATCH] fix: clarify Table.insert() commit behavior in docs Fixes simonw/sqlite-utils#712 --- sqlite_utils/db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlite_utils/db.py b/sqlite_utils/db.py index aacdc893..775606d8 100644 --- a/sqlite_utils/db.py +++ b/sqlite_utils/db.py @@ -3382,6 +3382,8 @@ def insert( Insert a single record into the table. The table will be created with a schema that matches the inserted record if it does not already exist, see :ref:`python_api_creating_tables`. + This method commits its changes as part of an internal transaction. + - ``record`` - required: a dictionary representing the record to be inserted. The other parameters are optional, and mostly influence how the new table will be created if