mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-01 18:10:16 +00:00
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:
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] {
|
||||
|
||||
Reference in new issue
Block a user