Gwendal Roué
bb789e3dee
QueryInterfaceRequest.deleteAndFetchIds
2024-06-05 18:42:36 +02:00
Gwendal Roué
b312d4cf5a
Add missing DocC links to cast(_:as:)
2024-06-05 18:36:24 +02:00
Gwendal Roué
f335123c2b
Update link to SQLite RETURNING caveats
2024-06-05 18:23:56 +02:00
Gwendal Roué
87fdd9a66f
cast function
2024-03-23 10:47:19 +01:00
Gwendal Roué
7a7ee554c7
OrderedRequest.withStableOrder()
2023-10-12 09:17:50 +02: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é
8cc52983b7
Introduce SQLFunctionFlags
2023-10-01 15:39:47 +02:00
Gwendal Roué
466ecd5ba5
Documentation
2023-07-09 17:22:38 +02:00
Gwendal Roué
4a5d4d6e49
Fix Xcode 15 warnings
2023-06-06 08:06:06 +02:00
Gwendal Roué
84ac401886
Add FilteredRequest.all()
...
This method does nothing: it returns `self`. It exists in order to match `none()`.
2023-06-02 13:31:02 +02:00
Gwendal Roué
82d28b3167
Bitwise assignment operators &= |= <<= >>=
2023-05-23 08:16:14 +02:00
Gwendal Roué
29b5b99b89
Fix typos
2023-03-11 08:00:23 +01:00
Gwendal Roué
3b0cf1fb0b
FTS5 DocC
2023-02-19 17:38:19 +01: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é
d3c289a320
Availability checks cleanup
2023-01-22 12:37:40 +01:00
baegteun
a9feac1339
♻️ :: OSX -> macOS in Availability Check
2023-01-17 13:58:37 +09:00
Gwendal Roué
2976e81a95
Fix failing test for #1315
2023-01-15 13:39:05 +01:00
Gwendal Roué
f5ebf0de4d
Use primary key definitions with NOT NULL constraint by default
2022-11-27 12:35:47 +01:00
Gwendal Roué
4e4699ebed
Improve inline documentation
2022-11-26 16:26:46 +01:00
Gwendal Roué
0b12e89e62
DocC: AssociationAggregate
2022-11-06 17:18:27 +01:00
Gwendal Roué
13c804d1cc
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
1818534513
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
a89dad2554
Fix Swiftlint warnings
2022-10-29 14:21:33 +02:00
Gwendal Roué
82b4d90a82
Xcode 14 RC doesn't ship with the Swift 5.6 stdlib
...
https://forums.swift.org/t/xcode-14-rc-cannot-specialize-protocol-type/60171
2022-09-09 08:16:55 +02:00
Gwendal Roué
b0f7493765
BREAKING: rename request methods that build a DatabasePromise
...
This creates an opportunity for future `request.filter { ... }` apis that look like standard ones. Why not `Player.filter { $0.score > 1000 }` eventually, perhaps with code generation?
2022-09-06 22:56:40 +02:00
Gwendal Roué
fdbcb07452
Fix #1275
2022-09-06 08:25:21 +02:00
Gwendal Roué
c6657b7063
ColumnAssignment that does nothing
...
A cool upsert feature is to overwrite an existing value in case of conflict, but another cool upsert feature is to NOT overwrite an existing value. This commit makes it possible to create a ColumnAssignement that does nothing.
2022-08-23 20:02:17 +02:00
Gwendal Roué
2789444acd
Enable UPSERT and RETURNING with SQLCipher
2022-08-21 21:22:34 +02:00
Gwendal Roué
a702fe6bc9
BREAKING: persistence callbacks, and support for RETURNING
...
- Replace performInsert, performUpdate, etc with callbacks: willInsert, aroundInsert, didInsert, etc.
- Always call didInsert, even with INSERT OR IGNORE
- Explicit conflict resolution in persistence methods
- Add ...AndFetch... methods
2022-08-21 21:22:34 +02:00
Gwendal Roué
c38d903f4d
Make RequestProtocols.swift easier to read
2022-08-21 21:22:34 +02:00
Gwendal Roué
1239c14e6d
Explicit initializers for HasOneThrough and HasManyThrough associations
2022-08-21 21:22:34 +02:00
Gwendal Roué
1bfba945d3
Fix invalid Swift syntax in documentation
2022-08-21 21:22:34 +02:00
Gwendal Roué
5b7c58faf4
Make Database+Schema.swift easier to read
2022-08-21 21:22:34 +02:00
Gwendal Roué
b2eafd4a13
SE-0361: Extensions on bound generic types
...
https://github.com/apple/swift-evolution/blob/main/proposals/0361-bound-generic-extensions.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
36892fee55
BREAKING: Bump minimum SQLite version to 3.19.3
2022-08-21 21:22:34 +02:00
Gwendal Roué
80ec31f588
BREAKING: remove DerivableRequest.limit(_:offset:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
11a6d53d8a
SE-0326: closure result type inference
...
https://github.com/apple/swift-evolution/blob/main/proposals/0326-extending-multi-statement-closure-inference.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
42987dd849
Cleanup filter(rawKeys:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
7ffc332327
BREAKING: replace selectID() with selectPrimaryKey(as:)
...
Since Optional is a database value like others, selectID would be a request of optionals for records with an optional ID type:
struct Player: Identifiable, MutablePersistableRecord {
var id: Int64?
}
Player.selectID() // QueryInterface<Int64?>
This is not good, because primary keys are not null. And those requests would fetch impractical types such as [Int64?], Set<Int64?>, Int64??.
Instead, we introduce selectPrimaryKey(as:), which allows the user to provide the desired type.
Player.selectPrimaryKey(as: Int64.self) // QueryInterface<Int64>
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é
c0c6b34869
SE-0346: 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é
fe225fe452
BREAKING: Remove deprecated methods
2022-08-21 19:21:57 +02:00
Gwendal Roué
6da7d47394
Swift 5.7 required: Remove compiler checks
2022-08-21 19:21:57 +02:00
Ethan Wong
f313a43ef9
Update doc issue on TableRequest.filter(keys:).
2022-05-07 13:32:31 +08:00
Gwendal Roué
301fb34702
Fix failing test for including(all:) on limited request and composite primary keys
2022-01-21 13:42:42 +01:00
Gwendal Roué
ae609cec3b
Support for the TOTAL SQL aggregate function
2021-12-12 14:46:43 +01:00
Gwendal Roué
8ba89a398a
Add ABS and LENGTH SQL functions on association aggregates
2021-12-12 14:27:41 +01:00