mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Documentation
This commit is contained in:
1 parent
aba08042ed
commit
9a48bcc013
1 file changed
+1
-1
@@ -269,7 +269,7 @@ let dbPool = try DatabasePool(path: "/path/to/database.sqlite")
|
||||
|
||||
SQLite creates the database file if it does not already exist. The connection is closed when the database pool gets deallocated.
|
||||
|
||||
A database pool allows concurrent reading and writing. Writes are serialized, so that there is no conflict. Reads are isolated, which means that you can perform several fetch requests in a row without being affected by eventual concurrent writes.
|
||||
A database pool allows concurrent reading and writing. Writes are serialized, so that there is no conflict. Reads are isolated, which means that [you can](#databasepool-concurrency) perform several fetch requests in a row without being affected by eventual concurrent writes.
|
||||
|
||||
> :point_up: **Note**: unless read-only, a database pool opens your database in the SQLite "WAL mode". The WAL mode does not fit all situations. Please have a look at https://www.sqlite.org/wal.html.
|
||||
|
||||
|
||||
Reference in new issue
Block a user