diff --git a/GRDB/Core/Configuration.swift b/GRDB/Core/Configuration.swift index 093c29257..20badb4bb 100644 --- a/GRDB/Core/Configuration.swift +++ b/GRDB/Core/Configuration.swift @@ -248,11 +248,16 @@ public struct Configuration { /// Default: .userInitiated public var qos: DispatchQoS = .userInitiated - /// The quality of service of read accesses - var readQoS: DispatchQoS { + /// The quality of service of read database accesses. + public var readQoS: DispatchQoS { targetQueue?.qos ?? self.qos } + /// The quality of service of write database accesses. + public var writeQoS: DispatchQoS { + writeTargetQueue?.qos ?? targetQueue?.qos ?? self.qos + } + /// A target queue for database accesses. /// /// Database connections which are not read-only will prefer