add macOS playground

This commit is contained in:
John Estropia
2019-02-12 18:05:06 +09:00
parent 4b0d134acb
commit e09ac9ee00
11 changed files with 89 additions and 12 deletions

View File

@@ -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)
/// =======================