Add insertRow so that the importer can write one row at a time instead of setting each column as a separate call.

This commit is contained in:
Brent Simmons committed 2026-03-07 11:30:53 -08:00
1 parent faba8e5615
commit 2fde38350e
1 file changed
+6
@@ -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] {