mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Wording
This commit is contained in:
1 parent
3c1ab47843
commit
18c65eecb6
1 file changed
+1
-1
@@ -119,7 +119,7 @@ extension AppDatabase {
|
||||
|
||||
> :point_right: Some applications will prefer to manage the shared `AppDatabase` instance differently, for example with some dependency injection technique. In this case, you will not define `AppDatabase.shared`.
|
||||
>
|
||||
> Just make sure that there exists a single instance of `DatabaseQueue` or `DatabasePool` for any given database file. This is because multiple instances would compete for database access, and sometimes throw errors. [Sharing a database] is hard. Get inspiration from `AppDatabase.makeShared()`, above, in order to create the single instance of your database service.
|
||||
> Just make sure that there exists a single instance of `DatabaseQueue` or `DatabasePool` for any given database file. This is because multiple instances would compete for database access, and sometimes throw errors. [Sharing a database] across processus is hard. Get inspiration from `AppDatabase.makeShared()`, above, in order to create the single instance of database service used by the application.
|
||||
>
|
||||
> :point_right: The database is stored in its own directory, so that you can easily:
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user