Gwendal Roué
004968517e
Update more documentation with the closure syntax
2025-05-10 17:43:22 +02:00
Gwendal Roué
79a782038e
Undeprecate Date coding strategies based on DateFormatter
...
https://github.com/swiftlang/swift/issues/78635#issuecomment-2676324549
> DateFormatter is indeed thread safe and its conformance to Sendable is correct
2025-02-23 11:12:24 +01:00
Gwendal Roué
824100990f
Deprecate Date coding strategies based on DateFormatter
...
Fix #1728
2025-02-22 13:45:42 +01:00
Gwendal Roué
cc0b401f0a
StrictConcurrency: FetchableRecord.databaseDecodingUserInfo must be declared as a computed property
2024-09-22 10:10:01 +02:00
Gwendal Roué
6a29d6c081
[BREAKING] Prefer Collection over Sequence for filter(keys:) and derived APIs
...
We were frequently turning those sequences into an Array in order to check their emptiness, and generally were not sure we'd iterate a sequence only once.
Also use `some Sequence` and `some Collection` whenever possible.
2024-09-08 12:52:27 +02:00
Gwendal Roué
876a0870ee
Coding strategies are Sendable
2024-08-25 15:14:43 +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
Gwendal Roué
6157a40dad
Fix DocC warnings
2024-08-24 16:34:35 +02:00
Gwendal Roué
43ced9b2f0
Trivial Sendable conformances
...
Either added, either made explicitly unavailable.
2024-03-17 18:25:04 +01:00
Gwendal Roué
f4ac0ab119
Make it possible to observe the supplementary fetches
2023-10-08 20:41:05 +02:00
Gwendal Roué
5a42d78e06
Data decoding and encoding strategies
...
Users must be able to store JSON data as text in the database.
2023-10-04 19:55:12 +02:00
Gwendal Roué
266efa041c
Expose FetchableRecordDecoder
2023-04-29 17:15:54 +02:00
Gwendal Roué
3382280cc3
Statement.execute(arguments:) uses temporary bindings
...
Inspired by @helje5 in https://hachyderm.io/@helge@mastodon.social/109978514220902036
Thank you!!
Now, onto cursors!
2023-03-11 12:10:25 +01:00
Gwendal Roué
b3763ad08e
RecordCursor: same documation as all cursors
2023-02-26 10:26:03 +01:00
Gwendal Roué
4a4ff9950c
FetchableRecord.find() methods
2022-11-30 19:36:25 +01:00
Gwendal Roué
13c804d1cc
DocC
2022-11-06 16:02:36 +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é
9531a7f8fc
More specialization
2022-09-17 15:49:28 +02:00
Gwendal Roué
0ed9367b26
BREAKING: DatabaseCursor no longer exposes its prepared statement
2022-08-21 21:22:34 +02:00
Gwendal Roué
5243db7fbc
Spelling
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é
23cbf13af0
Swift 5.7 required: Availability checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
f0cfde682e
Update outdated documentation
2022-05-18 08:12:00 +02:00
Gwendal Roué
09922c34ff
Code formatting
2022-01-23 12:24:34 +01:00
BB9z
6d3f309cad
Fix typos
2022-01-19 00:10:42 +08:00
Gwendal Roué
b53b43b1fc
Cleanup
2022-01-16 14:50:55 +01:00
Gwendal Roué
8e6827070f
Improve documentation
2022-01-14 13:47:54 +01:00
Gwendal Roué
d105b35750
More #1124-related documentation
2022-01-14 13:29:34 +01:00
Gwendal Roué
ed6c5438b9
Move DatabaseCursor state to Statement
2022-01-14 13:13:34 +01:00
Gwendal Roué
bd67153095
Fix #1124 for more cursors
2022-01-13 14:28:04 +01:00
Gwendal Roué
1bb2029e74
Fix #1124 by dealing with authorizers
2022-01-08 13:51:41 +01:00
Gwendal Roué
87e9a0d0e0
Add license
2021-08-30 19:21:37 +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é
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é
06763e47d2
Share convertToSnakeCase()
2021-08-28 16:05:41 +02:00
Gwendal Roué
5f23d97903
Add the custom strategies
2021-08-28 15:50:34 +02:00
Gwendal Roué
03a8e03a92
Documentation
...
Doc of cases is copied from JSONDecoder.KeyDecodingStrategy and JSONEncoder.KeyEncodingStrategy
2021-08-28 15:48:31 +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
Gwendal Roué
2858b803d0
Remove useless <Void> qualifiers
...
SQLRequest and CommonTableExpression are <Row> by default
2021-08-21 12:25:04 +02: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é
bf601e6810
Merge SelectStatement and UpdateStatement
...
Addresses #1015
2021-07-29 20:20:15 +02:00
Chris Ballinger
43de1c24a7
Add userInfo to databaseJSONDecoder and databaseJSONEncoder
2021-04-08 13:11:59 -07:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
7f229468d2
Documentation
2020-07-12 15:12:04 +02:00