Gwendal Roué
266efa041c
Expose FetchableRecordDecoder
2023-04-29 17:15:54 +02:00
Gwendal Roué
ac214e6760
SE-0345: if let shorthand for shadowing an existing optional variable
2023-01-30 08:00:47 +01:00
Gwendal Roué
4307f6a680
Fix Swiftlint warnings
2022-11-06 18:43:00 +01:00
Gwendal Roué
811d287bd9
Row.withUnsafeData
2022-11-06 16:02:36 +01:00
Gwendal Roué
1818534513
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
e0786537db
BREAKING: replace Int32 with CInt everywhere it is possible
2022-08-21 21:22:34 +02:00
Gwendal Roué
895964de16
BREAKING: Throwing FetchableRecord.init(row:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
a9fcf1b9c1
SE-0335, SE-0341, SE-0346, SE-0352, SE-0358: some, any, primary associated types
2022-08-21 21:22:34 +02:00
Gwendal Roué
dd55175978
SE-0345: if let x { }
...
https://github.com/apple/swift-evolution/blob/main/proposals/0345-if-let-shorthand.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
58293befc9
BREAKING: Optional is a database value like others
2022-08-21 21:22:34 +02:00
Gwendal Roué
23cbf13af0
Swift 5.7 required: Availability checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
c30b49117b
If a scope is found, there is no point searching for prefetched rows
2022-03-04 12:04:02 +01:00
Gwendal Roué
ec975819b7
Fix for container.decodeNil(forKey:) in the context of including(all:)
2022-03-04 11:55:53 +01:00
Gwendal Roué
8ed16f4440
Fix some compiler warnings with -Xfrontend -warn-concurrency
...
https://twitter.com/olebegemann/status/1467893554915782668
2021-12-07 09:23:37 +01:00
Gwendal Roué
53c662d179
Decode optional collections from prefetched rows
...
This allows to define records that only decode to-many associations when they are eager-loaded.
See https://github.com/groue/GRDB.swift/issues/1084#issuecomment-948880910
2021-10-23 12:40:55 +02:00
Gwendal Roué
e6e2536f6b
Reverse DatabaseColumnDecodingStrategy
...
It does not convert coding keys to columns, but columns to CodingKeys, exactly as JSONDecoder.KeyDecodingStrategy
2021-08-29 13:52:36 +02:00
Gwendal Roué
86e4adf860
Spot a design flaw
2021-08-29 10:08:08 +02:00
Gwendal Roué
427a00582f
Rename keyDecodingStrategy to columnDecodingStrategy
2021-08-29 09:55:06 +02:00
Gwendal Roué
6f024373b3
Fix failing test
2021-08-29 09:51:31 +02:00
Gwendal Roué
e60a31f401
Fix failing test
2021-08-29 09:40:32 +02:00
Gwendal Roué
d567630966
Column decoding strategy only applies to columns
2021-08-29 08:55:39 +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é
987b8a48e5
Key coding strategies transform keys into columns
...
They are not String transformers
2021-08-28 15:41:12 +02:00
Gwendal Roué
665770c50c
Remove all ABI annotations
2021-08-21 13:14:54 +02:00
Scott Berrevoets
79abf62a47
Fix name and convert Decodables as well
2021-08-14 21:45:35 -07:00
Scott Berrevoets
4ab7f1cf3e
Add support for encoding as well
2021-08-12 20:12:10 -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
Gwendal Roué
620eb6f21c
Default DatabaseValueConvertible+Codable implementation uses the JSON format
2021-07-04 17:34:31 +02:00
Chris Ballinger
984dea156c
Allow access to Encoder and Decoder from KeyedCodingContainer
2021-03-27 08:57:44 -07:00
Gwendal Roué
4dd8042894
Make it possible to decode arrays of scalars from including(all:)
2021-03-08 14:21:35 +01:00
Gwendal Roué
b7c57dc7f2
Attempt at clarifying the (complex) decoding api
...
The difficulty is due to fast decoding of StatementColumnConvertible, and non-copied Data, from raw SQLite statement.
We want it to be inlinable, and possible in nested rows.
Added missing tests for nested rows
2021-02-25 20:45:12 +01:00
Gwendal Roué
cb2405a8b9
RowDecodingError
2021-02-21 14:21:04 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
5050c36c4e
Fix wording of root key decoding error
2020-09-19 15:52:50 +02:00
Gwendal Roué
8cb468cf05
Fix failing test for #836
2020-09-19 15:50:21 +02:00
Gwendal Roué
9ee3fd38b5
Remove mentions of unsupported iOS versions
2020-05-31 13:54:02 +02:00
Gwendal Roué
93f4d43ee6
Cleanup
2020-05-01 15:43:57 +02:00
Gwendal Roué
27ffb2a418
Rename index(ofColumn:) to index(forColumn:)
2020-05-01 15:01:01 +02:00
Gwendal Roué
f738fdfa8e
Cleanup Decodable behavior regarding missing keys and optionals
2020-04-26 14:19:29 +02:00
Gwendal Roué
0372c1dd63
Complete #747 : export the underlying SQLite library
2020-04-12 07:27:50 +02:00
Gwendal Roué
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
2b37e28691
remove debugging code
2019-12-09 19:20:02 +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é
3ab8a34d58
Fix a Swiftlint warning
2019-08-02 15:34:49 +02:00
Gwendal Roué
df6bb8761c
Swiftlint + whitespace
2019-07-01 08:57:53 +02:00
Gwendal Roué
9a28c0ae03
Fix a decoding error diagnostic
2019-05-22 22:28:13 +02:00
Gwendal Roué
2734bd1266
Fix for Swift 4.2
2019-05-21 23:14:52 +02:00
Gwendal Roué
b1c953c536
Better error reporting for missing scopes or prefetched rows
2019-05-21 19:56:55 +02:00
Gwendal Roué
cd53e0102b
Simplify PrefetchedRowsDecoder
2019-05-18 15:53:06 +02:00