This commit is contained in:
Gwendal Roué committed 2018-08-30 10:22:15 +02:00
1 parent 870d6e6966
commit eaf25161a5
1 file changed
+1 -1
+1 -1
View File
@@ -6073,7 +6073,7 @@ To observe regions, you start by building them from requests:
try dbQueue.write { db in
let teamRegion = try Team.filter(key: 1).databaseRegion(db)
let playersRegion = try SQLRequest<Player>("SELECT * FROM player").databaseRegion(db)
let maxScoreRegion = Player.select(max(Column("score"))).databaseRegion(db)
let maxScoreRegion = try Player.select(max(Column("score"))).databaseRegion(db)
```
You can also group regions: