Gwendal Roué
27c7bda0e9
Refactor with DatabaseEventObservationStrategy
...
The issue with `observesAllDatabaseChanges` is that this was a misleading name: transaction observers are not notified of changes that are performed in a save point that is eventually rollbacked.
By exposing the DatabaseEventObservationStrategy type, we allow for a future extra flag that ignores save points, trading observation precision for a reduced memory footprint.
2026-05-31 14:04:10 +02:00
Simon Binder
253cdfec8c
Review feedback
2026-05-11 20:47:20 +02:00
Gwendal Roué
d7d61add23
DatabaseSchemaSource customizes the primary key of database views
2025-09-23 17:12:27 +02:00
Gwendal Roué
c2e6c86934
Warn against the independent observation of each element in a list.
2025-05-11 13:32:50 +02:00
Gwendal Roué
96d04716c2
Update more documentation with the closure syntax
2025-05-11 10:57:20 +02:00
Gwendal Roué
fa0985eb01
Documentation: add @retroactive to Tagged extensions
2025-01-21 08:03:46 +01:00
Gwendal Roué
a6b15684c3
Improve migration notes for ValueObservation
2024-09-29 13:27:07 +02:00
Gwendal Roué
900180dafd
[BREAKING] Prefer any DatabaseReader and DatabaseWriter
2024-09-21 16:50:03 +02:00
Gwendal Roué
58a2e04736
Mark ValueObservation starting methods as @preconcurrency
...
I guess the compiler will learn to stop emitting warnings eventually.
https://mjtsai.com/blog/2024/09/20/unwanted-swift-concurrency-checking/
2024-09-21 12:30:38 +02:00
Gwendal Roué
bdb7d84086
[BREAKING] ValueObservation MainActor scheduling
...
Breaking because before iOS 13, macOS 10.15, tvOS 13, there is no longer any default scheduler
2024-09-21 12:30:38 +02:00
Gwendal Roué
e1a384009a
[BREAKING] Async sequences built from ValueObservation schedule values and errors on the cooperative thread pool by default.
2024-09-21 12:19:39 +02:00
Gwendal Roué
849bba2820
Refactor ValueReducer for Swift concurrency
...
The fetching facet of a ValueReducer is Sendable.
2024-08-27 08:31:28 +02:00
Gwendal Roué
451a9eb493
[BREAKING] Remove Configuration.defaultTransactionKind
...
GRDB now defaults read-only transactions to DEFERRED, and write transactions to IMMEDIATE. See https://github.com/groue/GRDB.swift/issues/1483 for some context.
2024-08-25 08:22:07 +02:00
Gwendal Roué
29eb04c39a
[BREAKING] iOS 12+
2024-08-24 15:45:38 +02:00
Gwendal Roué
c8bb0a4799
Improve the documentation about the scheduling of ValueObservation fetches
2024-04-21 14:42:47 +02:00
Gwendal Roué
93462cfd2c
Documentation
2023-11-26 10:33:00 +01:00
Gwendal Roué
f1a8c5ac92
Wording
2023-11-25 16:49:37 +01:00
Gwendal Roué
56ad833ab7
New Dealing with Undetected Changes documentation chapter
2023-11-25 15:32:35 +01:00
Gwendal Roué
1a16bdeac8
TransactionObserver.databaseDidChange()
2023-11-25 13:30:23 +01:00
Gwendal Roué
5e749eb50b
Document that changes performed by SQLite statements that are not compiled and executed by GRDB are not detected.
2023-11-24 14:10:57 +01:00
Gwendal Roué
38bb8d3505
Backport temporary copies from GRDBSnapshotTesting
2023-10-28 18:38:15 +02:00
Gwendal Roué
e22bf8fe0a
DocC organization
2023-10-08 20:05:22 +02:00
Gwendal Roué
7944979d56
Add new methods to DocC
2023-09-16 14:14:20 +02:00
Gwendal Roué
7f6ab59250
Markdown files are soft-wrapped
2023-09-16 14:10:17 +02:00
Jhonny Bill Mena
3f96a965b9
ADD - databaseJSONDecoder and databaseJSONEncoder methods
...
ADD - optional jsonEncoder parameter to DatabaseValueEncoder
ADD - docs around new JSON customization methods
2023-09-10 23:54:50 -04:00
Gwendal Roué
9e5cb95e1f
Documentation for Configuration.journalMode
2023-08-25 10:11:41 +01:00
Gwendal Roué
59c41c97af
Clarify the prevention of database access from TransactionObserver callbacks
2023-07-02 10:58:09 +02:00
Gwendal Roué
3a1c211746
Address #1389 by forcing the user to specify a tracked region
...
This is technically a breaking change, but nobody will notice it.
2023-06-08 12:17:27 +02:00
Gwendal Roué
fc641092f7
Document how truncating wal checkpoints impact ValueObservation
2023-06-02 12:04:28 +02:00
Gwendal Roué
449c243a36
Rename persistentReaderConnections to dbConfiguration.persistentReadOnlyConnections
2023-03-18 11:08:56 +01:00
Gwendal Roué
063877d49c
Configuration.persistentReaderConnections
2023-03-17 13:52:29 +01:00
Gwendal Roué
7c81c37e1f
Move DatabaseRegionObservation documentation in an extension file
2023-03-15 16:51:46 +01:00
Gwendal Roué
3f876978a1
Move TransactionObserver documentation in an extension file
2023-03-15 16:51:46 +01:00
Gwendal Roué
a0ed1bfd33
Move ValueObservation documentation in an extension file
2023-03-15 16:51:46 +01:00
Gwendal Roué
d5a41bd11b
Disable SQLITE_STATIC optimization when there are too many arguments
2023-03-13 19:33:52 +01:00
Gwendal Roué
b4e851aa49
More statement arguments documentation
2023-03-12 10:59:38 +01: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é
29b5b99b89
Fix typos
2023-03-11 08:00:23 +01:00
Gwendal Roué
6509f7ed40
Improve DatabaseValueConvertible documentation
2023-03-06 08:22:29 +01:00
Gwendal Roué
67bdc740bd
DatabaseValueConvertible and collections: move the rationale out of the user-facing documentation.
2023-03-06 08:03:08 +01:00
Gwendal Roué
692eac43a9
Fix typos
2023-03-05 07:44:12 +01:00
Gwendal Roué
4f398a3457
Prepared statements documentation is now hosted in the Statement DocC
2023-03-04 17:08:12 +01:00
Gwendal Roué
67dfdc1bbb
Move DatabaseValueConvertible.swift DocC in an extension file
2023-03-04 15:19:55 +01:00
Gwendal Roué
f649d9e19e
Transaction Date
2023-02-18 08:31:05 +01:00
Gwendal Roué
c50cfd937e
DocC: DatabaseQueue and DatabasePool
2022-12-18 11:45:28 +01:00
Gwendal Roué
3d7170f1bc
DocC: Configuration
2022-12-17 10:11:36 +01:00
Gwendal Roué
2c5a86479a
DocC: Transactions and Savepoints
2022-12-17 10:11:36 +01:00