From 2fde38350ebed67039f65e96fdd2bd9a39f22508 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 7 Mar 2026 11:30:53 -0800 Subject: [PATCH] Add insertRow so that the importer can write one row at a time instead of setting each column as a separate call. --- Modules/Account/Sources/Account/FeedSettingsDatabase.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Modules/Account/Sources/Account/FeedSettingsDatabase.swift b/Modules/Account/Sources/Account/FeedSettingsDatabase.swift index 0724eb816..3d8e679d3 100644 --- a/Modules/Account/Sources/Account/FeedSettingsDatabase.swift +++ b/Modules/Account/Sources/Account/FeedSettingsDatabase.swift @@ -77,6 +77,12 @@ import Articles database.executeUpdate("INSERT OR IGNORE INTO feedSettings (feedURL, feedID) VALUES (?, ?);", withArgumentsIn: [feedURL, feedID]) } + // MARK: - Insert Row + + func insertRow(_ dictionary: DatabaseDictionary) { + database.insertRow(dictionary, insertType: .orReplace, tableName: "feedSettings") + } + // MARK: - Fetch Rows func allRows() -> [String: Row] {