README.md

This commit is contained in:
Gwendal Roué committed 2016-03-08 09:04:43 +01:00
1 parent b6fd50c9cd
commit 44a7c8589c
1 file changed
+6 -2
+6 -2
View File
@@ -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