mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
b6fd50c9cd
commit
44a7c8589c
1 file changed
+6
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user