From 6500a97f880a0347cc3e3cc643fe480701b15681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 18 Feb 2023 11:58:46 +0100 Subject: [PATCH] Documentation --- GRDB/Core/Database.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index d7ef11e01..c007c812d 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -284,8 +284,12 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib case on } - /// Whether the last executed statement left the database is the auto-commit - /// mode or not. + /// The state of the auto-commit mode, as left by the last + /// executed statement. + /// + /// The goal of this property is to detect changes in the auto-commit mode. + /// When you need to know if the database is currently in the auto-commit + /// mode, always prefer ``isInsideTransaction``. var autocommitState = AutocommitState.on /// The date of the current transaction, wrapped in a result that is an