From 44a7c8589c03007e4ada567bbc06b4ebe05e8991 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 8 Mar 2016 09:04:43 +0100 Subject: [PATCH] README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a30f86a86..357ffb74f 100644 --- a/README.md +++ b/README.md @@ -63,9 +63,13 @@ struct PointOfInterest { try dbQueue.inDatabase { db in // INSERT INTO "pointOfInterests" ... - var berlin = PointOfInterest(id: nil, title: "Berlin", favorite: false, coordinate: CLLocationCoordinate2DMake(52.52437, 13.41053)) + var berlin = PointOfInterest( + id: nil, + title: "Berlin", + favorite: false, + coordinate: CLLocationCoordinate2DMake(52.52437, 13.41053)) try berlin.insert(db) - print(berlin.id) + print(berlin.id) // some value // UPDATE "pointOfInterests" ... berlin.favorite = true