From 81166432a871fec0def2bc45f389d4ddf218cbd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 31 Oct 2020 13:45:58 +0100 Subject: [PATCH] Documentation for `generatedAs(sql:)` --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3c1d6f75d..2d421875f 100644 --- a/README.md +++ b/README.md @@ -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: