mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Documentation for generatedAs(sql:)
This commit is contained in:
1 parent
5dc8502c8b
commit
81166432a8
1 file changed
+6
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user