diff --git a/GRDB/Core/Protocols/DatabasePersistable.swift b/GRDB/Core/Protocols/DatabasePersistable.swift index 79239af10..9ebdc3c7a 100644 --- a/GRDB/Core/Protocols/DatabasePersistable.swift +++ b/GRDB/Core/Protocols/DatabasePersistable.swift @@ -59,6 +59,7 @@ public protocol DatabasePersistable : DatabaseTableMapping { /// - parameter name: The name of the eventual INTEGER PRIMARY KEY column. mutating func didInsertWithRowID(rowID: Int64, forColumn name: String?) + // MARK: - CRUD /// Executes an INSERT statement. diff --git a/TODO.md b/TODO.md index 8146f42a6..1d3497250 100644 --- a/TODO.md +++ b/TODO.md @@ -4,6 +4,7 @@ - [ ] `IN (?)` sql snippet, with an array argument. - [ ] Write sample code around NSFetchedResultsController: fetch and output a list of TableView sections & row differences. - [ ] Compare DatabaseCoder with http://mjtsai.com/blog/2015/11/08/the-java-deserialization-bug-and-nssecurecoding/ +- [ ] Try to avoid the mandatory mutation of DatabasePersistable.insert() Not sure: