From 8dc0168841dba8e26d41b723b918b2ce636450db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 12 Mar 2022 16:05:54 +0100 Subject: [PATCH] Database.sqliteConnection setter is private --- GRDB/Core/Database.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index f935f7f17..c6658dece 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -26,8 +26,10 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib // MARK: - SQLite C API /// The raw SQLite connection, suitable for the SQLite C API. - /// It is constant, until close() sets it to nil. - public var sqliteConnection: SQLiteConnection? + /// + /// It is nil after the database has been successfully closed with + /// ``DatabaseReader/close()``. + public private(set) var sqliteConnection: SQLiteConnection? // MARK: - Configuration