metatext/DB/Sources/DB/Extensions/Account+Extensions.swift

16 lines
375 B
Swift
Raw Normal View History

2020-09-03 03:28:34 +00:00
// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
import GRDB
import Mastodon
extension Account: FetchableRecord, PersistableRecord {
public static func databaseJSONDecoder(for column: String) -> JSONDecoder {
APIDecoder()
}
public static func databaseJSONEncoder(for column: String) -> JSONEncoder {
APIEncoder()
}
}