mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-01 19:41:27 +00:00
16 lines
375 B
Swift
16 lines
375 B
Swift
|
// 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()
|
||
|
}
|
||
|
}
|