Documentation for generatedAs(sql:)

This commit is contained in:
Gwendal Roué committed 2020-10-31 13:45:58 +01:00
1 parent 5dc8502c8b
commit 81166432a8
1 file changed
+6
+6
View File
@@ -4025,6 +4025,12 @@ Other **table constraints** can involve several columns:
}
```
[Generated columns](https://sqlite.org/gencol.html) are available with a [custom SQLite build]:
```swift
t.column("totalScore", .integer).generatedAs(sql: "score + bonus", .stored)
```
### Modify Tables
SQLite lets you modify existing tables: