run sds_generate
This commit is contained in:
parent
d0a657f399
commit
8ab877ec66
@ -275,6 +275,26 @@ extension OWSDatabaseMigration {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - OWSDatabaseMigrationCursor
|
||||
|
||||
@ -219,6 +219,26 @@ extension OWSUserProfile {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - OWSUserProfileCursor
|
||||
|
||||
@ -200,6 +200,26 @@ extension OWSDisappearingMessagesConfiguration {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - OWSDisappearingMessagesConfigurationCursor
|
||||
|
||||
@ -213,6 +213,26 @@ extension SignalAccount {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - SignalAccountCursor
|
||||
|
||||
@ -195,6 +195,26 @@ extension SignalRecipient {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - SignalRecipientCursor
|
||||
|
||||
@ -312,6 +312,26 @@ extension TSThread {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - TSThreadCursor
|
||||
|
||||
@ -212,6 +212,26 @@ extension OWSDevice {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - OWSDeviceCursor
|
||||
|
||||
@ -206,6 +206,26 @@ extension OWSLinkedDeviceReadReceipt {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - OWSLinkedDeviceReadReceiptCursor
|
||||
|
||||
@ -405,6 +405,26 @@ extension TSAttachment {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - TSAttachmentCursor
|
||||
|
||||
@ -1263,6 +1263,26 @@ extension TSInteraction {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - TSInteractionCursor
|
||||
|
||||
@ -212,6 +212,26 @@ extension OWSMessageContentJob {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - OWSMessageContentJobCursor
|
||||
|
||||
@ -200,6 +200,26 @@ extension OWSMessageDecryptJob {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - OWSMessageDecryptJobCursor
|
||||
|
||||
@ -201,6 +201,26 @@ extension TSRecipientReadReceipt {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - TSRecipientReadReceiptCursor
|
||||
|
||||
@ -201,6 +201,26 @@ extension InstalledSticker {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - InstalledStickerCursor
|
||||
|
||||
@ -201,6 +201,26 @@ extension KnownStickerPack {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - KnownStickerPackCursor
|
||||
|
||||
@ -233,6 +233,26 @@ extension StickerPack {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - StickerPackCursor
|
||||
|
||||
@ -218,6 +218,26 @@ extension OWSRecipientIdentity {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - OWSRecipientIdentityCursor
|
||||
|
||||
@ -299,6 +299,26 @@ extension SSKJobRecord {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - SSKJobRecordCursor
|
||||
|
||||
@ -185,6 +185,26 @@ extension ExperienceUpgrade {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - ExperienceUpgradeCursor
|
||||
|
||||
@ -224,6 +224,26 @@ extension OWSBackupFragment {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction) {
|
||||
anyReload(transaction: transaction, ignoreMissing: false)
|
||||
}
|
||||
|
||||
public func anyReload(transaction: SDSAnyReadTransaction, ignoreMissing: Bool) {
|
||||
guard let uniqueId = self.uniqueId else {
|
||||
owsFailDebug("uniqueId was unexpectedly nil")
|
||||
return
|
||||
}
|
||||
|
||||
guard let latestVersion = type(of: self).anyFetch(uniqueId: uniqueId, transaction: transaction) else {
|
||||
if !ignoreMissing {
|
||||
owsFailDebug("`latest` was unexpectedly nil")
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
setValuesForKeys(latestVersion.dictionaryValue)
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - OWSBackupFragmentCursor
|
||||
|
||||
Loading…
Reference in New Issue
Block a user