From 62a37ac1f4f01edddc00fd7bc46e519313c6cbbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 12 Mar 2016 08:25:58 +0100 Subject: [PATCH] Documentation --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d3a709ffe..8ea4f16cd 100644 --- a/README.md +++ b/README.md @@ -1767,11 +1767,11 @@ When you subclass [Record](#record-class), you simply have to override the custo class Person : Record { var uuid: String? - override func insert(db: Database) throws { + override func insert(writer: DatabaseWriter) throws { if uuid == nil { uuid = NSUUID().UUIDString } - try super.insert(db) + try super.insert(writer) } } ``` @@ -1782,14 +1782,14 @@ If you use the raw [Persistable](#persistable-protocol) protocol, use one of the struct Link : Persistable { var url: NSURL - func insert(db: Database) throws { + func insert(writer: DatabaseWriter) throws { try validate() - try performInsert(db) + try performInsert(writer) } - func update(db: Database) throws { + func update(writer: DatabaseWriter) throws { try validate() - try performUpdate(db) + try performUpdate(writer) } func validate() throws {