Gwendal Roué
c40256600a
Update playgrounds doc
2022-08-28 09:49:34 +02:00
Gwendal Roué
535f44c463
Update the GRDB6 migration guide
2022-08-27 14:42:57 +02:00
Gwendal Roué
4c10899a3c
Single Cross-Platform Target
2022-08-27 13:43:44 +02:00
Gwendal Roué
0321c79c2d
Update SQLiteCustom to v3.39.2
2022-08-27 12:16:59 +02:00
Gwendal Roué
51c9071b3d
v6.0.0-beta.3
2022-08-25 19:11:20 +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é
56cdaabd9c
Update the "Single-Row Tables" guide
2022-08-25 19:05:27 +02:00
Gwendal Roué
14321e411c
v6.0.0-beta.2
2022-08-23 22:16:37 +02:00
Gwendal Roué
1036dd4d6e
v6.0.0-beta
2022-08-21 21:56:51 +02:00
Gwendal Roué
37f0a0bb9a
BREAKING: throwing EncodableRecord.encode(to:)
2022-08-21 21:22:34 +02:00
Gwendal Roué
d2dd18b3e5
Remove note and warning icons
...
Those are handled by Github now:
https://github.com/community/community/discussions/16925
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é
2f2cccacf9
Remove UI tests of demo apps, since GRDBQuery is tested on its own
...
(Don't test the framework)
2022-08-21 21:22:34 +02:00
Gwendal Roué
e5d10ed8c1
fix async AppDatabaseTests tests
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é
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é
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é
6f0d45eedb
BREAKING: throwing DatabaseWriter.barrierWriteWithoutTransaction
...
It used to be rethrowing, but it was then unable to deal with closed databases.
The async version is modified accordingly: it accepts a Result<Database, Error>, instead of a raw Database.
DatabaseMigrator.asyncMigrate is impacted as well: it accepts a Result<Database, Error>, instead of a (Database, Error?) tuple.
2022-08-21 19:21:57 +02:00
Gwendal Roué
86de843bda
Swift 5.7 required: Xcode 14 updates
2022-08-21 19:21:57 +02:00
Gwendal Roué
23cbf13af0
Swift 5.7 required: Availability checks
2022-08-21 19:21:57 +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
Gwendal Roué
2df6a17c1c
v5.26.0
2022-07-09 18:27:57 +02:00
Sameer
aacaa433c9
Update AssociationsBasics.md
...
Fixed a typo
2022-06-30 12:51:53 +05:00
Gwendal Roué
c0e9c8746d
v5.25.0
2022-06-11 17:35:39 +02:00
Gwendal Roué
5b254eec16
v5.24.0
2022-05-01 11:43:14 +02:00
Martin Pfundmair
dd5ce280b5
Fix apple docs links
2022-04-29 16:10:03 +09:00
Gwendal Roué
dc03adb4e2
v5.23.0
2022-04-16 10:09:45 +02:00
Gwendal Roué
209192d3a5
Require Swift 5.6 Compiler for Concurrency Support
2022-04-13 23:07:33 +02:00
Gwendal Roué
fafa74c246
Fix ValueObservation.publisher documentation
2022-03-22 19:24:06 +01:00
Gwendal Roué
9fa831b6bb
v5.22.0
2022-03-22 16:41:40 +01:00
Gwendal Roué
685074932e
v5.21.0
2022-02-06 12:14:05 +01:00
Gwendal Roué
95ce4a3f8a
Drop async apis from DatabaseMigrator
...
This is because DatabaseMigrator can't be Sendable as long as it runs migrations that embed non-@Sendable closures.
2022-02-01 09:53:20 +01:00
Gwendal Roué
e5a8e130d7
v5.20.0
2022-02-01 07:44:09 +01:00
Gwendal Roué
bb8b39f7fd
Documentation for public statement arguments
2022-01-29 14:54:47 +01:00
Gwendal Roué
c46e8257d8
v5.19.0
2022-01-19 16:18:59 +01:00
BB9z
6d3f309cad
Fix typos
2022-01-19 00:10:42 +08:00
Gwendal Roué
78df734f51
v5.18.0
2022-01-09 17:36:31 +01:00
Gwendal Roué
5b7ba122e8
Bump custom SQLite to v3.37.2
2022-01-09 14:06:27 +01:00