DESIGN.md

This commit is contained in:
Gwendal Roué committed 2015-09-08 22:45:02 +02:00
1 parent d2d3b658d3
commit c6418c4bc1
1 file changed
+1 -1
+1 -1
View File
@@ -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: