mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
DESIGN.md
This commit is contained in:
1 parent
110a8e28a8
commit
d2d3b658d3
1 file changed
+1
-1
@@ -56,7 +56,7 @@ Yet, don't miss the [RowConvertible](http://cocoadocs.org/docsets/GRDB.swift/0.1
|
||||
|
||||
### Why are DatabaseQueue.inTransaction() and DatabaseQueue.inDatabase() not reentrant?
|
||||
|
||||
I, the library author, do not like slow database accesses to be hidden behind innocent-looking methods or properties. Preventing those methods to be reentrant fosters explicit database argument in functions that access the database, so that it is obvious when the database is used.
|
||||
Preventing those methods to be reentrant fosters explicit database argument in functions that access the database, so that it is obvious when the database is used. I, the library author, do not like slow database accesses to be hidden behind innocent-looking methods or properties.
|
||||
|
||||
For example, assuming a global `dbQueue`, let's compare:
|
||||
|
||||
|
||||
Reference in new issue
Block a user