diff --git a/GRDB/ValueObservation/ValueObservation+DatabaseValueConvertible.swift b/GRDB/ValueObservation/ValueObservation+DatabaseValueConvertible.swift index 63577d900..de4b240d6 100644 --- a/GRDB/ValueObservation/ValueObservation+DatabaseValueConvertible.swift +++ b/GRDB/ValueObservation/ValueObservation+DatabaseValueConvertible.swift @@ -124,7 +124,7 @@ public struct DatabaseValuesReducer: ValueReducer public mutating func value(_ dbValues: [DatabaseValue]) -> [Request.RowDecoder]? { if let previousDbValues = previousDbValues, previousDbValues == dbValues { // Don't notify consecutive identical dbValue arrays - // TODO: Remove this implicit `distinctUntilChanged` in GRDB 4 + // TODO: Remove this implicit `distinctUntilDatabaseChanged` in GRDB 4 return nil } self.previousDbValues = dbValues @@ -158,7 +158,7 @@ public struct DatabaseValueReducer: ValueReducer public mutating func value(_ dbValue: DatabaseValue?) -> Request.RowDecoder?? { if let previousDbValue = previousDbValue, previousDbValue == dbValue { // Don't notify consecutive identical dbValue - // TODO: Remove this implicit `distinctUntilChanged` in GRDB 4 + // TODO: Remove this implicit `distinctUntilDatabaseChanged` in GRDB 4 return nil } self.previousDbValue = dbValue @@ -169,7 +169,7 @@ public struct DatabaseValueReducer: ValueReducer return .some(value) } else if previousValueWasNil { // Don't notify consecutive nil values - // TODO: Remove this implicit `distinctUntilChanged` in GRDB 4 + // TODO: Remove this implicit `distinctUntilDatabaseChanged` in GRDB 4 return nil } else { previousValueWasNil = true @@ -203,7 +203,7 @@ public struct OptionalDatabaseValuesReducer: ValueReducer public mutating func value(_ dbValues: [DatabaseValue]) -> [Request.RowDecoder._Wrapped?]? { if let previousDbValues = previousDbValues, previousDbValues == dbValues { // Don't notify consecutive identical dbValue arrays - // TODO: Remove this implicit `distinctUntilChanged` in GRDB 4 + // TODO: Remove this implicit `distinctUntilDatabaseChanged` in GRDB 4 return nil } self.previousDbValues = dbValues diff --git a/GRDB/ValueObservation/ValueObservation+FetchableRecord.swift b/GRDB/ValueObservation/ValueObservation+FetchableRecord.swift index a9eb2431a..2a3ac9d7c 100644 --- a/GRDB/ValueObservation/ValueObservation+FetchableRecord.swift +++ b/GRDB/ValueObservation/ValueObservation+FetchableRecord.swift @@ -91,7 +91,7 @@ public struct FetchableRecordsReducer: ValueReducer public mutating func value(_ rows: [Row]) -> [Request.RowDecoder]? { if let previousRows = previousRows, previousRows == rows { // Don't notify consecutive identical row arrays - // TODO: Remove this implicit `distinctUntilChanged` in GRDB 4 + // TODO: Remove this implicit `distinctUntilDatabaseChanged` in GRDB 4 return nil } self.previousRows = rows @@ -122,7 +122,7 @@ public struct FetchableRecordReducer: ValueReducer public mutating func value(_ row: Row?) -> Request.RowDecoder?? { if let previousRow = previousRow, previousRow == row { // Don't notify consecutive identical rows - // TODO: Remove this implicit `distinctUntilChanged` in GRDB 4 + // TODO: Remove this implicit `distinctUntilDatabaseChanged` in GRDB 4 return nil } self.previousRow = row diff --git a/GRDB/ValueObservation/ValueObservation+Row.swift b/GRDB/ValueObservation/ValueObservation+Row.swift index 011fa3aa5..e3c1f55ba 100644 --- a/GRDB/ValueObservation/ValueObservation+Row.swift +++ b/GRDB/ValueObservation/ValueObservation+Row.swift @@ -120,7 +120,7 @@ public struct RowReducer: ValueReducer public mutating func value(_ row: Row?) -> Row?? { if let previousRow = previousRow, previousRow == row { // Don't notify consecutive identical rows - // TODO: Remove this implicit `distinctUntilChanged` in GRDB 4 + // TODO: Remove this implicit `distinctUntilDatabaseChanged` in GRDB 4 return nil } self.previousRow = row