mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Document that database pools require mastery of database transactions
This commit is contained in:
1 parent
d91f4c244f
commit
c3e986eb56
1 file changed
+2
@@ -370,6 +370,8 @@ See [Configuration](http://cocoadocs.org/docsets/GRDB.swift/0.102.0/Structs/Conf
|
||||
|
||||
**A Database Pool allows concurrent database accesses.**
|
||||
|
||||
When more efficient than [database queues](#database-queues), database pools also require a good mastery of database transactions. Details follow. If you don't feel comfortable with transactions, use a [database queue](#database-queues) instead.
|
||||
|
||||
```swift
|
||||
import GRDB
|
||||
let dbPool = try DatabasePool(path: "/path/to/database.sqlite")
|
||||
|
||||
Reference in new issue
Block a user