From b35cf4afdc99fa8fc1fa749a48514afe17dec73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Thu, 15 Mar 2018 20:46:03 +0100 Subject: [PATCH] Record.save(_:) documents that is can't be overridden --- GRDB/Record/Record.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GRDB/Record/Record.swift b/GRDB/Record/Record.swift index ddad9f547..ad24dc289 100644 --- a/GRDB/Record/Record.swift +++ b/GRDB/Record/Record.swift @@ -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().