SQLTableBuilder documentation

This commit is contained in:
Gwendal Roué committed 2016-08-05 22:58:03 +02:00
1 parent 04ab95ab76
commit 00a032e6b0
3 files changed
+179 -49

No files matched your search

@@ -310,7 +310,7 @@ class SQLTableBuilderTests: GRDBTestCase {
let dbQueue = try makeDatabaseQueue()
try dbQueue.inDatabase { db in
try db.create(table: "test") { t in
t.check(SQLColumn("a") > SQLColumn("b"))
t.check(SQLColumn("a") + SQLColumn("b") < 10)
t.check(sql: "a + b < 10")
t.column("a", .Integer)
t.column("b", .Integer)
@@ -319,7 +319,7 @@ class SQLTableBuilderTests: GRDBTestCase {
"CREATE TABLE \"test\" (" +
"\"a\" INTEGER, " +
"\"b\" INTEGER, " +
"CHECK ((\"a\" > \"b\")), " +
"CHECK (((\"a\" + \"b\") < 10)), " +
"CHECK (a + b < 10)" +
")")