Gwendal Roué
9bfe893908
DatabaseWriter.concurrentRead replaces readFromCurrentState
2018-09-09 13:12:35 +02:00
Gwendal Roué
e5cd3a8994
SE-0206
2018-08-30 16:34:30 +02:00
Gwendal Roué
d9989fc442
FetchableRecord+Decodable: fix a few corner cases
2018-08-26 15:14:20 +02:00
Gwendal Roué
566f42e8d0
Remove useless conversion contexts
2018-08-26 14:07:36 +02:00
Gwendal Roué
ab98081e7b
Don't initialize PersistenceContainer inside RecordEncoder
2018-08-25 15:32:57 +02:00
Gwendal Roué
0932e92fb4
Documentation
2018-08-21 19:39:34 +02:00
Gwendal Roué
ad11affd21
ISO8601: don't let user customize the formatter
2018-08-20 23:43:04 +02:00
Gwendal Roué
f70e9b3e39
Introduce DatabaseUUIDEncodingStrategy
2018-08-20 21:14:51 +02:00
Gwendal Roué
b7273e0a7e
Documentation
2018-08-20 08:05:20 +02:00
Gwendal Roué
f925d7e3d4
Fix SPM
2018-08-19 22:21:03 +02:00
Gwendal Roué
bbf7eb0b73
Make tests platform-independent
2018-08-19 22:15:19 +02:00
Gwendal Roué
ff306c21e2
DatabaseDateEncodingStrategy
2018-08-19 21:54:41 +02:00
Gwendal Roué
d1892c649c
Documentation
2018-08-19 21:41:47 +02:00
Gwendal Roué
f5d0e4db12
Cleanup & documentation
2018-08-19 20:28:47 +02:00
Gwendal Roué
d03b76b7e7
DatabaseDateDecodingStrategy
2018-08-19 19:50:35 +02:00
Gwendal Roué
1e25debefc
Done
2018-08-19 07:31:09 +02:00
Gwendal Roué
97d77e871b
internal documentation
2018-08-18 20:54:40 +02:00
Gwendal Roué
7cb58cfffc
Major cleanup of FetchableRecord+Decodable
2018-08-18 20:27:07 +02:00
Gwendal Roué
950940dedf
Major cleanup of MutablePersistableRecord+Encodable
2018-08-18 19:02:16 +02:00
Gwendal Roué
ba7cd4f61d
Cleanup
2018-08-18 15:54:01 +02:00
Gwendal Roué
7a3321a5ed
Add missing Foundation import
2018-08-18 15:54:01 +02:00
Gwendal Roué
812975ee7d
Cleanup
2018-08-18 15:54:01 +02:00
Gwendal Roué
47c424cb69
PersistableRecord: customize JSON encoding per column
2018-08-18 15:54:01 +02:00
Gwendal Roué
b35fb6e315
FetchableRecord: customize JSON decoding per column
2018-08-18 15:54:01 +02:00
Gwendal Roué
fdc191bbb4
Inline documentation
2018-08-18 15:54:01 +02:00
Gwendal Roué
b7b8594176
Pass tests for MutablePersistableRecord userInfo customization
2018-08-18 15:54:01 +02:00
Gwendal Roué
513a5a3fb7
More FetchableRecord userInfo customization tests
2018-08-18 15:54:01 +02:00
Gwendal Roué
1a3638c0ef
FetchableRecord can customize Decoder userInfo
2018-08-18 15:54:01 +02:00
Gwendal Roué
d7f7a57129
Hide implementation details
2018-08-16 06:42:31 +02:00
Gwendal Roué
2eb0955420
JSON encoding: choose strategies
...
Data: .base64
Date: .millisecondsSince1970
NonConformingFloat: .throw
2018-08-15 18:34:47 +02:00
Gwendal Roué
d00421abe0
Restore SPM: add missing Foundation import
2018-08-15 17:17:08 +02:00
Gwendal Roué
358225b462
Cleanup, documentation, and preserve coding paths
2018-08-15 13:41:53 +02:00
Gwendal Roué
820673b78b
PersistableRecord+Encodable: make it as robust as FetchableRecord+Decodable
2018-08-15 13:23:58 +02:00
Gwendal Roué
0cdc7d81d4
Just some cleanup, nothing new
2018-08-15 11:10:11 +02:00
Gwendal Roué
942b32e5d5
RowSingleValueDecodingContainer performance improvements
...
We switch from column indexing to integer indexing, which is far more efficient. And we can use the improved value decoding methods from #384 .
2018-08-15 10:40:14 +02:00
Gwendal Roué
aa8bc0fae3
Don't let JSONDecodingRequiredError go
...
JSON decoding: when row doesn't contain any Data, we don't want to expose a JSONDecodingRequiredError error to the user. We switch to a detailed conversion error instead (see #384 ).
2018-08-15 10:24:28 +02:00
Gwendal Roué
275098084d
Introduce JSONDecodingRequiredError
...
We used to check for a standard DecodingError.typeMismatch error with specific message before switching to JSON decoding.
There was a small risk that such an error would not be generated by GRDB. In this case, we'd erroneously switch to JSON decoding instead of throwing the error.
So let's recognize the specific need for JSON decoding with a specific error instead: JSONDecodingRequiredError.
2018-08-15 10:12:28 +02:00
Gwendal Roué
05fda18a56
Introduce RowSingleValueDecoder
...
This allows complex decodable types to fail decoding from a row column, so that we switch to JSON decoding.
2018-08-15 09:55:45 +02:00
Gwendal Roué
4b7f17dbfa
Merge remote-tracking branch 'origin/development' into rotacloud
2018-08-15 05:12:28 +02:00
Angus Muller
c52b59f1bc
Switching to JSON encoding for nested containers.
2018-08-14 16:01:05 +01:00
Vlad Alexa
76f5adf944
moved the extension to Swift.Data to follow the extension to Swift.String in the StandardLibrary.swift,
...
added case .blob(let data): return String(data: data, encoding: .utf8) to String.fromDatabaseValue
fixed tests
2018-08-14 15:04:07 +01:00
Vlad Alexa
d81475adc4
6262d10 continued
2018-08-14 13:06:26 +01:00
Vlad Alexa
6262d10794
added catch
2018-08-14 09:25:44 +01:00
Gwendal Roué
d9dd293d7f
A really difficult cleanup process
2018-08-14 08:33:06 +02:00
Gwendal Roué
e49e2db571
Optimize decoding of StatementColumnConvertible values in Decodable records
...
This is the real final touch for #384 , after all
2018-08-13 21:17:52 +02:00
Gwendal Roué
66541922a4
More cleanup
2018-08-12 12:27:47 +02:00
Gwendal Roué
ef10e2e8ed
General cleanup:
...
- rename ValueConversionDebuggingInfo to ValueConversionContext
- allow missing value conversion context (when decoding a raw DatabaseValue)
- rename ColumnCursor to FastDatabaseValueCursor
- rename NullableColumnCursor to FastNullableDatabaseValueCursor
2018-08-11 19:45:58 +02:00
Gwendal Roué
220ce379e1
Test conversion error messages
2018-08-09 14:00:33 +02:00
Vlad Alexa
2826472c19
sorted encoder outputFormatting for ios11+ etcl
2018-08-09 09:46:45 +01:00
Gwendal Roué
bcc45dc076
no more throwing conversion methods, and refactor ValueConversionDebuggingInfo
2018-08-09 08:51:50 +02:00