Gwendal Roué
98c58f4eef
Fix more typos in public documentation
2026-11-02 20:27:37 +01:00
Gwendal Roué
909f7455e6
Fix more typos in public documentation
2026-11-01 21:01:03 +01:00
Gwendal Roué
5d9e853f24
Fix typos in code samples
2026-11-01 20:45:05 +01:00
Gwendal Roué
7a216d7d34
Fix typos in public documentation
2026-11-01 20:45:05 +01:00
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
Simon Binder
e934c428b4
Add observe(statement:) to TransactionObserver
2026-05-05 22:06:06 +02:00
Micah Moore
c24bf5d118
SQLCipher adjustments to support forks which want to enable SQLCipher using traits/swiftSettings
...
- Adds Database+SQLCipher extension with SQLCipher operations, enabled by #if SQLITE_HAS_CODEC
- Adjusts Import Statements to import SQLCipher when SQLCipher trait is enabled (or SQLCipher swiftSetting is set)
2026-01-14 11:32:48 -05:00
Gwendal Roué
8cba324d6e
Refactor the SQLite import
...
We can not use `#if Trait` because Xcode does not enable those compiler flags. Always count on Apple for delivering the best quality software.
So now we import the default SPM SQLite last, after all other cases have been excluded.
The GRDB framework (GRDB.xcodeproj and GRDB via CocoaPods) is distinct from the default SPM trait, so we detect it with GRDBFRAMEWORK.
2025-10-04 17:56:06 +02:00
Gwendal Roué
b4f3a83755
Remove SwiftLint warning
...
If we don't have warnings about explicit nil initialization, then we have a warning about the name of a disabled rule which is now deprecated. In all cases, we have a warning.
So let's just write 2025 Swift, ignore that rule, and call it a day.
2025-09-02 08:07:16 +02:00
Jason Abbott
c7d50486ad
Merge branch 'groue:development' into development
2025-05-30 12:05:03 -06:00
Jason Abbott
93292d88f4
Make DatabasePreUpdateEvent.Kind Sendable, matching DatabaseEvent.Kind, and also duplicate comments from DatabaseEvent.Kind while here
2025-05-30 12:02:23 -06:00
Gwendal Roué
a71c1d6e80
Removed unnecessary TODO warning
2025-03-28 08:15:54 +01:00
Gwendal Roué
67b34dc57c
TransactionObserver can access the database, even if the transaction was completed in a cancelled task.
...
Fix https://github.com/groue/GRDB.swift/discussions/1746
2025-03-22 12:13:42 +01:00
Gwendal Roué
28faa97a37
Database.afterNextTransaction callbacks are Sendable
2024-09-08 16:17:45 +02:00
Gwendal Roué
9e1ff42249
[BREAKING] Rename CSQLite to GRDBSQLite
...
Fix #1528
2024-08-24 18:15:57 +02:00
Gwendal Roué
9cd1d849cc
[BREAKING] Stop exporting SQLite
2024-08-24 17:25: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é
e29c52d7e5
Update obsolete documentation of stopObservingDatabaseChangesUntilNextTransaction
2023-11-27 10:00:41 +01:00
Gwendal Roué
93462cfd2c
Documentation
2023-11-26 10:33:00 +01:00
Gwendal Roué
079c0c7f26
The unit of change notification is the event kind, not the region
2023-11-25 16:44:18 +01:00
Gwendal Roué
3e52e265ce
Fix failing test for stopObservingDatabaseChangesUntilNextTransaction() from databaseDidChange()
2023-11-25 15:32:35 +01:00
Gwendal Roué
918afbd33e
Fix failing tests for Database.notifyChanges(in:) and regular tables
2023-11-25 14:39:13 +01:00
Gwendal Roué
1a16bdeac8
TransactionObserver.databaseDidChange()
2023-11-25 13:30:23 +01:00
Gwendal Roué
e22bf8fe0a
DocC organization
2023-10-08 20:05:22 +02:00
Gwendal Roué
97c04a7f26
Shorten line length
2023-07-29 11:42:02 +02:00
Gwendal Roué
9ff58c32e7
Use CChar instead of Int8 when we deal with C strings
2023-07-29 11:13:41 +02:00
Gwendal Roué
0b2b26fd11
A statement can delete even if it's not a DELETE statement (through triggers)
2023-07-29 11:08:55 +02:00
Gwendal Roué
59c41c97af
Clarify the prevention of database access from TransactionObserver callbacks
2023-07-02 10:58:09 +02:00
Gwendal Roué
4c0cc84c2d
Improve DatabaseEventPredicate usage with SQLITE_ENABLE_PREUPDATE_HOOK
2023-03-31 08:02:04 +02:00
Gwendal Roué
018ae03f8e
Improve DatabaseEventPredicate usage
2023-03-22 08:30:21 +01:00
Gwendal Roué
378c6785ea
Clarification on the truncate optimization
2023-03-16 18:44:46 +01:00
Gwendal Roué
3f876978a1
Move TransactionObserver documentation in an extension file
2023-03-15 16:51:46 +01:00
Gwendal Roué
aff924a72b
Upgrade Swiftlint and fix warnings
2023-02-04 11:23:14 +01:00
Gwendal Roué
ac214e6760
SE-0345: if let shorthand for shadowing an existing optional variable
2023-01-30 08:00:47 +01:00
baegteun
a9feac1339
♻️ :: OSX -> macOS in Availability Check
2023-01-17 13:58:37 +09:00
Gwendal Roué
409bd3bb26
Move Database Observation documentation to DocC
2022-11-28 08:27:12 +01:00
Gwendal Roué
e3cc15707a
Move ValueObservation documentation to DocC
2022-11-27 18:27:26 +01:00
Gwendal Roué
1625bc83f8
Documentation organization
2022-11-11 11:34:02 +01:00
Gwendal Roué
71880a9b8e
Enhance Documentation
2022-11-09 13:20:08 +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é
e79b6a5622
Fix typo
2022-10-21 08:50:01 +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é
5243db7fbc
Spelling
2022-08-21 21:22:34 +02:00
Gwendal Roué
4ced8c78e7
Less "iff" (some people think this is a typo)
...
iff = if and only if
2022-08-21 21:22:34 +02:00
Gwendal Roué
e0786537db
BREAKING: replace Int32 with CInt everywhere it is possible
2022-08-21 21:22:34 +02:00
Gwendal Roué
fb6ea57d74
Don’t setup database observation in read-only connections.
...
Observation of read-only connections has turned useless since read-only transactions are no longer reported to TransactionObserver, in #1213
2022-08-21 21:22:34 +02:00
Gwendal Roué
0879311646
Make TransactionObserver.swift easier to read
...
Add some documentation, and rename some types and variables.
2022-08-21 21:22:34 +02:00