mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-18 12:28:37 +01:00
26 lines
637 B
Swift
26 lines
637 B
Swift
//
|
|
// DatabaseRelatedObjectsTable.swift
|
|
// RSDatabase
|
|
//
|
|
// Created by Brent Simmons on 9/2/17.
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public protocol DatabaseRelatedObjectsTable: DatabaseTable {
|
|
|
|
var databaseIDKey: String { get}
|
|
|
|
func fetchObjectsWithIDs(_ databaseIDs: Set<String>, in database: FMDatabase) -> [DatabaseObject]
|
|
func objectsWithResultSet(_ resultSet: FMResultSet) -> [DatabaseObject]
|
|
func objectWithRow(_ row: FMResultSet) -> DatabaseObject?
|
|
|
|
func save(_ objects: [DatabaseObject], in database: FMDatabase)
|
|
}
|
|
|
|
public extension DatabaseRelatedObjectsTable {
|
|
|
|
|
|
}
|