From 2d126010bca01f94dec8affae1f7b15db5a04982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 8 Apr 2016 13:17:03 +0200 Subject: [PATCH] Update documentation --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dabb7a43c..9108b5fd9 100644 --- a/README.md +++ b/README.md @@ -1581,7 +1581,7 @@ When you subclass [Record](#record-class), you simply have to override the custo class Person : Record { var uuid: String? - override func insert(db: DatabaseWriter) throws { + override func insert(db: Database) throws { if uuid == nil { uuid = NSUUID().UUIDString } @@ -1596,12 +1596,12 @@ If you use the raw [Persistable](#persistable-protocol) protocol, use one of the struct Link : Persistable { var url: NSURL - func insert(db: DatabaseWriter) throws { + func insert(db: Database) throws { try validate() try performInsert(db) } - func update(db: DatabaseWriter) throws { + func update(db: Database) throws { try validate() try performUpdate(db) }