Record.save(_:) documents that is can't be overridden

This commit is contained in:
Gwendal Roué committed 2018-03-15 20:46:03 +01:00
1 parent 930246592a
commit b35cf4afdc
1 file changed
+3
+3
View File
@@ -332,6 +332,9 @@ open class Record : FetchableRecord, TableRecord, PersistableRecord {
/// This method is guaranteed to have inserted or updated a row in the
/// database if it returns without error.
///
/// You can't override this method. Instead, override `insert(_:)`
/// or `update(_:columns:)`.
///
/// - parameter db: A database connection.
/// - throws: A DatabaseError whenever an SQLite error occurs, or errors
/// thrown by update().