Use records for grdb cursors.

This commit is contained in:
Matthew Chen 2019-05-15 12:41:18 -04:00
parent 458b37986f
commit 31eba7b9fb
2 changed files with 6 additions and 4 deletions

View File

@ -253,6 +253,8 @@ public class SDSKeyValueStore: NSObject {
// MARK: - Internal Methods
private func read<T>(_ key: String, transaction: SDSAnyReadTransaction) -> T? {
return nil
// YDB values are serialized by YDB.
// GRDB values are serialized to data by this class.
switch transaction.readTransaction {

View File

@ -32,11 +32,11 @@ public class FeatureFlags: NSObject {
@objc
public static var useGRDB: Bool {
if OWSIsDebugBuild() {
return true
} else {
// if OWSIsDebugBuild() {
// return true
// } else {
return false
}
// }
}
@objc