mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
README.md
This commit is contained in:
1 parent
4cea442b59
commit
e5b2be4346
1 file changed
+2
@@ -5132,6 +5132,8 @@ Those guarantees hold as long as you follow three rules:
|
||||
}
|
||||
|
||||
// UNSAFE CONCURRENCY
|
||||
// This method fails when some other thread is currently writing into
|
||||
// the database.
|
||||
func currentUser() throws -> User? {
|
||||
let dbQueue = try DatabaseQueue(...)
|
||||
return try dbQueue.inDatabase { db in
|
||||
|
||||
Reference in new issue
Block a user