Gwendal Roué
ad704c58e5
Hide implementation of RowDecodingError
...
Turn the enum into a struct so that it can be made public without exposing internal details
2025-07-20 13:00:12 +02:00
Gwendal Roué
cc0b401f0a
StrictConcurrency: FetchableRecord.databaseDecodingUserInfo must be declared as a computed property
2024-09-22 10:10:01 +02:00
Gwendal Roué
7747211691
[BREAKING] databaseDateDecodingStrategy depends on the column
2024-08-25 14:06:57 +02:00
Gwendal Roué
95ca9f5bf3
[BREAKING] databaseDataDecodingStrategy depends on the column
2024-08-25 14:06:50 +02:00
Steven Roebert
c977cb8226
Implemented support for single value decoding in _RowDecoder
2024-07-13 11:48:02 +02:00
Gwendal Roué
de382d30b8
Test decodeNil
...
Two failing tests related to https://github.com/groue/GRDB.swift/issues/1531
2024-04-21 12:13:24 +02:00
Gwendal Roué
3521030e13
Test _RowDecoder.KeyedContainer.allKeys, contains(_:), and support some nested keyed containers
2024-04-21 12:13:24 +02:00
Gwendal Roué
a49fd85627
Regression tests for #1512
2024-03-21 14:25:12 +01:00
Gwendal Roué
266efa041c
Expose FetchableRecordDecoder
2023-04-29 17:15:54 +02:00
Gwendal Roué
811d287bd9
Row.withUnsafeData
2022-11-06 16:02:36 +01:00
Gwendal Roué
895964de16
BREAKING: Throwing FetchableRecord.init(row:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
0842e11281
Thourough testing of DatabaseColumnDecodingStrategy
2021-08-29 13:53:22 +02:00
Gwendal Roué
5a04183baf
Fix test name
2021-08-29 08:55:06 +02:00
Gwendal Roué
42045ad8fb
Merge remote-tracking branch 'origin/development' into pr1029
2021-08-29 08:37:13 +02:00
Gwendal Roué
33e2c379db
Make it clear that strategies apply to columns only
...
...and not to row scopes or prefetched records
2021-08-28 16:24:53 +02:00
Gwendal Roué
2858b803d0
Remove useless <Void> qualifiers
...
SQLRequest and CommonTableExpression are <Row> by default
2021-08-21 12:25:04 +02:00
Scott Berrevoets
79abf62a47
Fix name and convert Decodables as well
2021-08-14 21:45:35 -07:00
Scott Berrevoets
cdc7805471
Add option for converting snake case
...
This adds an option to convert column names from snake case to camel
case, similar to how JSONDecoder works. In fact, the implementation here
is largely based on JSONDecoder's implementation.
2021-08-12 20:11:54 -07:00
Jonathan Rose
ae7f83dc40
Fix spelling succesful -> successful.
2021-05-31 14:28:28 +03:00
Martin Pfundmair
8895d590a0
adds test for userInfo in FetchableRecord.databaseJSONDecoder()
...
Making sure that databaseDecodingUserInfo is being applied to FetchableRecord.databaseJSONDecoder()
This tries to cover some of the changes in PR groue#958
2021-04-11 00:02:09 +09:00
Gwendal Roué
5050c36c4e
Fix wording of root key decoding error
2020-09-19 15:52:50 +02:00
Gwendal Roué
55c9e48a21
Failing test for #836
2020-09-19 15:50:07 +02:00
Gwendal Roué
f738fdfa8e
Cleanup Decodable behavior regarding missing keys and optionals
2020-04-26 14:19:29 +02:00
Gwendal Roué
d60fe3c22f
Replace import GRDBCustomSQLite with import GRDB
2020-04-04 16:44:01 +02:00
Gwendal Roué
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
dfb013bf78
#664 is not quite easy to fix with optionals :-/
2019-12-09 19:54:06 +01:00
Gwendal Roué
69fc6a0496
Test that RowDecoder won't decode several sub-records from the root row - addresses #664
2019-12-09 19:09:27 +01:00
Gwendal Roué
1c1ee4e92a
GRDBCipher is no longer. Long live GRDB.swift/SQLCipher.
2019-04-19 13:11:55 +02:00
Gwendal Roué
db67d3840b
Principle of least astonishment: rrename argument label rawSQL to sql
2019-02-17 13:28:41 +01:00
Gwendal Roué
6e80c748d2
SQLRequest(rawSQL:arguments:adapter:)
2019-02-17 13:28:40 +01:00
Gwendal Roué
c546c578ce
fetchCursor/All/One(_:rawSQL:arguments:adapter:)
2019-02-17 13:28:40 +01:00
Gwendal Roué
32f1a7ae0f
Fix JSON encoding of empty arrays and dictionaries
2018-11-28 08:34:32 +01:00
Gwendal Roué
ba7cd4f61d
Cleanup
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é
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é
ef123824c3
Failing tetsts for Decodable user infos
2018-08-18 15:54:01 +02:00
Gwendal Roué
02db2a8dc6
Tests for JSON data strategy
2018-08-15 18:40:24 +02:00
Gwendal Roué
9bb4ff86f1
Tests for JSON date strategy
2018-08-15 18:35:06 +02:00
Vlad Alexa
5f41c57c45
amended the documentation and tests to include Dictionary support to Codable types
2018-08-15 10:21:55 +01:00
Angus Muller
8c06e7bff5
Detached rows string to data and tests
2018-08-14 11:16:47 +01:00
Vlad Alexa
7f16e357d0
extended Codable documentation and added test for the example used in the documentation
2018-08-14 10:39:31 +01:00
Vlad Alexa
74aae3dd59
implemented requested changes
2018-08-08 11:41:26 +01:00
Vlad Alexa
feeedcb92d
Added nested Codable support by flattening into/from JSON
2018-08-07 15:29:16 +01:00
Gwendal Roué
1a91020a84
After all, FetchableRecord and PersistableRecord
2018-02-27 19:25:49 +01:00