Skip to content

Commit

Permalink
Further adjustments for GRDB 6 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
iammajid committed Sep 18, 2024
1 parent 8a62f83 commit b864495
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/CryptomatorCloudAccess/Box/BoxItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extension BoxItem {
}

extension BoxItem: PersistableRecord {
func encode(to container: inout PersistenceContainer) {
func encode(to container: inout PersistenceContainer) throws {
container[BoxItem.cloudPathKey] = cloudPath
container[BoxItem.identifierKey] = identifier
container[BoxItem.itemTypeKey] = itemType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ private struct CachedEntry: Decodable, FetchableRecord, TableRecord {
}

extension CachedEntry: PersistableRecord {
func encode(to container: inout PersistenceContainer) {
func encode(to container: inout PersistenceContainer) throws {
container[CachedEntry.cleartextPathKey] = cleartextPath
container[CachedEntry.dirIdKey] = dirId
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private struct CachedEntry: Decodable, FetchableRecord, TableRecord {
}

extension CachedEntry: PersistableRecord {
func encode(to container: inout PersistenceContainer) {
func encode(to container: inout PersistenceContainer) throws {
container[CachedEntry.shortenedNameKey] = shortenedName
container[CachedEntry.originalNameKey] = originalName
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private struct CachedEntry: Decodable, FetchableRecord, TableRecord {
}

extension CachedEntry: PersistableRecord {
func encode(to container: inout PersistenceContainer) {
func encode(to container: inout PersistenceContainer) throws {
container[CachedEntry.shortenedNameKey] = shortenedName
container[CachedEntry.originalNameKey] = originalName
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/CryptomatorCloudAccess/OneDrive/OneDriveItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct OneDriveItem: Decodable, FetchableRecord, TableRecord, Equatable {
}

extension OneDriveItem: PersistableRecord {
func encode(to container: inout PersistenceContainer) {
func encode(to container: inout PersistenceContainer) throws {
container[OneDriveItem.cloudPathKey] = cloudPath
container[OneDriveItem.identifierKey] = identifier
container[OneDriveItem.driveIdentifierKey] = driveIdentifier
Expand Down
2 changes: 1 addition & 1 deletion Sources/CryptomatorCloudAccess/PCloud/PCloudItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ extension PCloudItem {
}

extension PCloudItem: PersistableRecord {
func encode(to container: inout PersistenceContainer) {
func encode(to container: inout PersistenceContainer) throws {
container[PCloudItem.cloudPathKey] = cloudPath
container[PCloudItem.identifierKey] = identifier
container[PCloudItem.itemTypeKey] = itemType
Expand Down

0 comments on commit b864495

Please sign in to comment.