mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
DESIGN.md
This commit is contained in:
1 parent
d2d3b658d3
commit
c6418c4bc1
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?
|
||||
|
||||
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.
|
||||
Because this 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