From 44d766e13ee1d72f1050388b85ecba14a01d1bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 4 Sep 2015 20:34:42 +0200 Subject: [PATCH] Introduce RowModel with a quick look at the RowModel API --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 75434ffcd..354831f56 100644 --- a/README.md +++ b/README.md @@ -818,6 +818,15 @@ Person.fetchAll(statement, arguments: ...) // [Person] Person.fetchOne(statement, arguments: ...) // Person? ``` +RowModel track changes: + +```swift +if person.edited { + try person.save(db) +} +``` + + - [Core Methods](#core-methods) - [Fetching Row Models](#fetching-row-models) - [Ad Hoc Subclasses](#ad-hoc-subclasses)