print PartialObjects

This commit is contained in:
John Estropia
2018-12-26 22:35:28 +08:00
parent a48f16aa8c
commit 614f1572c2

View File

@@ -687,6 +687,30 @@ extension OrderBy: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
}
// MARK: - PartialObject
extension PartialObject: CustomDebugStringConvertible, CoreStoreDebugStringConvertible {
// MARK: CustomDebugStringConvertible
public var debugDescription: String {
return formattedDebugDescription(self)
}
// MARK: CoreStoreDebugStringConvertible
public var coreStoreDumpString: String {
return createFormattedString(
"(", ")",
("rawObject", self.rawObject as Any)
)
}
}
// MARK: - SaveResult
@available(*, deprecated, message: "Use the new DataStack.perform(asynchronous:...) and DataStack.perform(synchronous:...) family of APIs")