mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Add userInfo to databaseJSONDecoder and databaseJSONEncoder
This commit is contained in:
1 parent
e017eddf4f
commit
43de1c24a7
2 files changed
+2
No files matched your search
@@ -133,6 +133,7 @@ extension EncodableRecord {
|
||||
// guarantee some stability in order to ease record comparison
|
||||
encoder.outputFormatting = .sortedKeys
|
||||
}
|
||||
encoder.userInfo = databaseEncodingUserInfo
|
||||
return encoder
|
||||
}
|
||||
|
||||
|
||||
@@ -120,6 +120,7 @@ extension FetchableRecord {
|
||||
decoder.dataDecodingStrategy = .base64
|
||||
decoder.dateDecodingStrategy = .millisecondsSince1970
|
||||
decoder.nonConformingFloatDecodingStrategy = .throw
|
||||
decoder.userInfo = databaseDecodingUserInfo
|
||||
return decoder
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user