mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
3178af0074
commit
ff69f6fdfc
1 file changed
+4
-4
@@ -246,9 +246,9 @@ dbQueue.inDatabase { db in
|
||||
}
|
||||
```
|
||||
|
||||
*If you know what you are doing*, you can skip the protection of `inDatabase`, and use the queue directly, as below. In a multithreaded application, two consecutive statements could then potentially run on an unstable database state (see [Concurrency]):
|
||||
*If you know what you are doing*, you can skip the protection of `inDatabase`, and use the queue directly, as below. In a multithreaded application, two consecutive statements could then potentially run on an unstable database state (see [Concurrency](#concurrency)):
|
||||
|
||||
```
|
||||
```swift
|
||||
// Direct access, for advanced users only:
|
||||
let pois = PointOfInterest.fetchAll(dbQueue)
|
||||
```
|
||||
@@ -315,9 +315,9 @@ dbPool.read { db in
|
||||
}
|
||||
```
|
||||
|
||||
*If you know what you are doing*, you can skip the protection of `read`, `write` and `writeInTransaction`, and use the pool directly, as below. In a multithreaded application, two consecutive statements could then potentially run on an unstable database state (see [Concurrency]):
|
||||
*If you know what you are doing*, you can skip the protection of `read`, `write` and `writeInTransaction`, and use the pool directly, as below. In a multithreaded application, two consecutive statements could then potentially run on an unstable database state (see [Concurrency](#concurrency)):
|
||||
|
||||
```
|
||||
```swift
|
||||
// Direct access, for advanced users only:
|
||||
let pois = PointOfInterest.fetchAll(dbPool)
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user