We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f5ad81 commit da8d7b3Copy full SHA for da8d7b3
Sources/SQLite/Typed/Coding.swift
@@ -207,6 +207,8 @@ private class SQLiteEncoder: Encoder {
207
encoder.setters.append(Expression(key.stringValue) <- data)
208
} else if let date = value as? Date {
209
encoder.setters.append(Expression(key.stringValue) <- date.datatypeValue)
210
+ }else if let uuid = value as? UUID {
211
+ encoder.setters.append(Expression(key.stringValue) <- uuid.uuidString)
212
} else {
213
let encoded = try JSONEncoder().encode(value)
214
let string = String(data: encoded, encoding: .utf8)
0 commit comments