mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-19 16:21:27 +01:00
add macOS playground
This commit is contained in:
@@ -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