From 49025734aa236d22c5b7147069a27e35cfb49fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 2 Feb 2016 19:14:43 +0100 Subject: [PATCH] README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2ce2461a3..ba025189c 100644 --- a/README.md +++ b/README.md @@ -1011,7 +1011,7 @@ The `databaseValue` property returns [DatabaseValue](GRDB/Core/DatabaseValue.swi The `fromDatabaseValue()` factory method returns an instance of your custom type, if the databaseValue contains a suitable value. -As an example, see [DatabaseTimestamp](https://gist.github.com/groue/ab172d2ee3344a0bfed1), an alternative to the built-in [NSDate](#nsdate-and-nsdatecomponents). DatabaseTimestamp stores dates as timestamps. +As an example, see [DatabaseTimestamp.playground](Playgrounds/DatabaseTimestamp.playground/Contents.swift): it shows how to store dates as timestamps, unlike the built-in [NSDate](#nsdate-and-nsdatecomponents). ## Prepared Statements @@ -1729,7 +1729,7 @@ person.hasPersistentChangedValues // true person.persistentChangedValues // ["age": 35] ``` -For an efficient algorithm which synchronizes the content of a database table with a JSON payload, check this [sample code](https://gist.github.com/groue/dcdd3784461747874f41). +For an efficient algorithm which synchronizes the content of a database table with a JSON payload, check [JSONSynchronization.playground](Playgrounds/JSONSynchronization.playground/Contents.swift). ## The Query Interface @@ -2312,7 +2312,7 @@ Sample Code - How to read and write NSDate as timestamp: [DatabaseTimestamp.playground](Playgrounds/DatabaseTimestamp.playground/Contents.swift) - How to synchronize a database table with a JSON payload: [JSONSynchronization.playground](Playgrounds/JSONSynchronization.playground/Contents.swift) - A class that behaves like NSUserDefaults, but backed by SQLite: [UserDefaults.playground](Playgrounds/UserDefaults.playground/Contents.swift) -- How to notify view controllers of database changes: https://gist.github.com/groue/2e21172719e634657dfd +- How to notify view controllers of database changes: [TableChangeObserver.swift](https://gist.github.com/groue/2e21172719e634657dfd) ---