From d5b4ed72fa5c7da339e6afb88dbda798ea5a0e81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 18 Sep 2022 15:30:48 +0200 Subject: [PATCH] Make Configuration.readQoS public --- GRDB/Core/Configuration.swift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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