README.md

This commit is contained in:
Gwendal Roué committed 2017-03-07 11:11:02 +01:00
1 parent 532f682fc7
commit 4cea442b59
1 file changed
+1 -1
+1 -1
View File
@@ -5127,7 +5127,7 @@ Those guarantees hold as long as you follow three rules:
return try User.fetchOne(db)
}
// dbQueue is a singleton defined somewhere in your app
let user = try dbQueue.inDatabase { db in
let user = try dbQueue.inDatabase { db in // or dbPool.read { ... }
try currentUser(db)
}