Gwendal Roué
6df8e2bd34
Fix casing of swiftpackageindex.com urls
2025-01-26 15:31:12 +01:00
Gwendal Roué
90ec3c188b
Host documentation on SPI
2022-11-11 11:34:02 +01:00
Gwendal Roué
9d03c1ae61
DocC: Single-Row Tables
2022-11-09 21:54:17 +01:00
Gwendal Roué
535f44c463
Update the GRDB6 migration guide
2022-08-27 14:42:57 +02:00
Gwendal Roué
05b81df614
Update the migration guide with the actions to perform on customized records
2022-08-25 19:05:27 +02:00
Gwendal Roué
37f0a0bb9a
BREAKING: throwing EncodableRecord.encode(to:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
422e0ae85a
BREAKING: Handles both commits and rollbacks
...
Replace afterNextTransactionCommit(_:) with afterNextTransaction(onCommit:onRollback:)
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é
0ed9367b26
BREAKING: DatabaseCursor no longer exposes its prepared statement
2022-08-21 21:22:34 +02:00
Gwendal Roué
27b65c9a80
BREAKING: Starting DatabaseRegionObservation returns a cancellable
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é
895964de16
BREAKING: Throwing FetchableRecord.init(row:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
a15f731042
BREAKING: remove Record.copy()
...
This will allow FetchableRecord.init(row:) to throw
2022-08-21 21:22:34 +02:00
Gwendal Roué
dba7f1b2dc
BREAKING: turn Cursor.isEmpty into a property
...
https://github.com/apple/swift-evolution/blob/main/proposals/0310-effectful-readonly-properties.md
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é
c0c6b34869
SE-0346: primary associated types
2022-08-21 21:22:34 +02:00
Gwendal Roué
458e1e2675
BREAKING: throwing DatabaseQueue() initializer
...
As a consequence, FTS3.tokenize(_:) is a throwing method as well.
2022-08-21 21:22:33 +02:00
Gwendal Roué
fcb037bdf0
Swift 5.7 required: Bump deployment targets
2022-08-21 19:21:57 +02:00
Gwendal Roué
e150ca6864
Migration guide to GRDB 6
2022-08-21 19:21:26 +02:00