mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
SQLTableBuilder documentation
This commit is contained in:
1 parent
980b3234d5
commit
ebfcc2e23a
1 file changed
+1
-1
@@ -2223,7 +2223,7 @@ Other **table constraints** can involve several columns:
|
||||
t.uniqueKey(["a", "b"], onConfict: .Replace)
|
||||
|
||||
// FOREIGN KEY (c, d) REFERENCES parents(a, b),
|
||||
t.foreignKey(["c", "d"], references: "parent", columns: ["a", "b"])
|
||||
t.foreignKey(["c", "d"], references: "parent")
|
||||
|
||||
// CHECK (a + b < 10),
|
||||
t.check(SQLColumn("a") + SQLColumn("b") < 10)
|
||||
|
||||
Reference in new issue
Block a user