mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-17 06:11:15 +01:00
add macOS playground
This commit is contained in:
1 parent
4b0d134acb
commit
e09ac9ee00
11 files changed
+89
-12
No files matched your search
@@ -42,12 +42,12 @@ dataStack.perform(synchronous: { transaction in
|
||||
|
||||
/// Accessing Objects =====
|
||||
let bird = dataStack.fetchOne(From<Animal>().where(\.species == "Sparrow"))!
|
||||
bird.species.value
|
||||
bird.color.value
|
||||
print(bird.species.value)
|
||||
print(bird.color.value as Any)
|
||||
print(bird)
|
||||
|
||||
let owner = bird.master.value!
|
||||
owner.name.value
|
||||
owner.pets.count
|
||||
print(owner.name.value)
|
||||
print(owner.pets.count as Any)
|
||||
print(owner)
|
||||
/// =======================
|
||||
Reference in new issue
Block a user