mirror of
https://github.com/metabolist/metatext.git
synced 2024-05-16 23:43:01 +00:00
16 lines
385 B
Swift
16 lines
385 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 {
|
|
MastodonDecoder()
|
|
}
|
|
|
|
public static func databaseJSONEncoder(for column: String) -> JSONEncoder {
|
|
MastodonEncoder()
|
|
}
|
|
}
|