Add docs for new throwing methods

This commit is contained in:
John Estropia committed 2019-01-17 18:43:10 +09:00
1 parent 09ce2816bf
commit 6dc48b6af7
7 files changed
+165 -72

No files matched your search

+3
View File
@@ -266,6 +266,9 @@ class DynamicModelTests: BaseTestDataTestCase {
let p3 = Where<Dog>({ $0.age == 10 })
XCTAssertEqual(p3.predicate, NSPredicate(format: "%K == %d", "age", 10))
let totalAge = try transaction.queryValue(From<Dog>().select(Int.self, .sum(\Dog.age)))
XCTAssertEqual(totalAge, 1)
_ = try transaction.fetchAll(
From<Dog>()