metatext/DB/Sources/DB/Content/AccountResult.swift
Justin Mazzocchi 70720b3c26
Sort imports
2020-09-04 19:31:43 -07:00

17 lines
461 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import GRDB
struct AccountResult: Codable, Hashable, FetchableRecord {
let account: AccountRecord
let moved: AccountRecord?
}
extension QueryInterfaceRequest where RowDecoder == AccountRecord {
var accountResultRequest: AnyFetchRequest<AccountResult> {
AnyFetchRequest(including(optional: AccountRecord.moved))
.asRequest(of: AccountResult.self)
}
}