Gwendal Roué
f2ea4e91db
CHANGELOG
2023-04-10 11:32:12 +02:00
Gwendal Roué
1add9a9752
Fix incorrect test
2023-04-10 11:31:19 +02:00
Gwendal Roué
17c3f82f50
Remove weird Xcode error regarding the Scripts "project"
2023-04-10 11:31:19 +02:00
Gwendal Roué
52a3d6ba23
Move the "Recommended Practices for Designing Record Types" to DocC
2023-04-10 09:51:38 +02:00
Gwendal Roué
54007a9ce1
Refactor demo apps for enhanced configuration management
2023-04-09 11:40:40 +02:00
Gwendal Roué
77d8a46039
Remove obsolete TODOs
2023-04-08 12:30:55 +02:00
Gwendal Roué
f6e695a21d
More explicit any/some
2023-04-08 12:01:59 +02:00
Gwendal Roué
3184334535
Merge branch 'development'
v6.10.1
2023-04-01 17:22:35 +02:00
Gwendal Roué
12e3923af1
v6.10.1
2023-04-01 16:01:43 +02:00
Gwendal Roué
b81e858ca0
Better fix for #1357
...
Previous fix would not correctly address #1357 when invalid double-quoted identifiers are interpreted as string literals (Configuration.acceptsDoubleQuotedStringLiterals = true, or SQLCipher 3)
2023-04-01 14:59:42 +02:00
Gwendal Roué
82f300e534
GitHub actions: Xcode 14.2
2023-04-01 14:30:57 +02:00
Gwendal Roué
9df1cfd110
CHANGELOG
2023-04-01 14:12:50 +02:00
Gwendal Roué
373fe467d6
Fix failing test for #1357
2023-04-01 14:09:50 +02:00
Gwendal Roué
81eb6b128f
Failing test for #1357
2023-04-01 14:09:50 +02:00
Gwendal Roué
c7ee12eff7
Remove deprecated swiftlint rule
2023-04-01 13:14:45 +02:00
Gwendal Roué
89330daa52
Use xcbeautify when available
2023-04-01 13:05:43 +02:00
Gwendal Roué
e408bd17d8
Fix Swiftlint warning
2023-04-01 13:04:52 +02:00
Gwendal Roué
99ddc5e13c
Makefile: add explicit macOS destinations
2023-04-01 12:56:44 +02:00
Gwendal Roué
4c0cc84c2d
Improve DatabaseEventPredicate usage with SQLITE_ENABLE_PREUPDATE_HOOK
2023-03-31 08:02:04 +02:00
Gwendal Roué
4762f8bb36
Fix spawnConcurrentRead documentation
2023-03-29 13:02:49 +02:00
Gwendal Roué
7e6f71912c
Enhance DatabaseQueue read-only transactions
2023-03-29 13:02:31 +02:00
Gwendal Roué
6b311941b1
Remove WWDCCompanion from the release process
2023-03-22 18:40:48 +01:00
Gwendal Roué
5facc24ebb
Fix compiler warnings for Swift 5.8
2023-03-22 18:40:37 +01:00
Gwendal Roué
018ae03f8e
Improve DatabaseEventPredicate usage
2023-03-22 08:30:21 +01:00
Gwendal Roué
52aef76b63
Fix Swiftlint warning
2023-03-22 08:25:37 +01:00
Gwendal Roué
2fa5ca767f
WALSnapshot is only available when the SQLite feature is
...
Since #1350 we no longer need to expose it and check for failures at runtime.
2023-03-20 15:05:17 +01:00
Gwendal Roué
a1b76f9e06
Fix typo
2023-03-20 09:21:50 +01:00
Gwendal Roué
2d19cab2b5
Merge branch 'development'
v6.10.0
2023-03-20 07:53:38 +01:00
Gwendal Roué
a551fbf443
v6.10.0
2023-03-20 07:53:28 +01:00
Gwendal Roué
c6e220a531
Merge pull request #1350 from groue/dev/long-lived-read-only-transaction
...
DatabasePool won't close read-only connections if requested, and ValueObservation no longer opens a new database connection when it starts
2023-03-20 07:50:30 +01:00
Gwendal Roué and Rogerio de Paula Assis
600d1b84b6
Update GRDB/Core/SerializedDatabase.swift
...
Co-authored-by: Rogerio de Paula Assis <rog@anz.com >
2023-03-20 07:02:00 +01:00
Gwendal Roué
5629cfe6ff
Fix documentation
2023-03-19 13:56:56 +01:00
Gwendal Roué
5d9b9edfe1
Fix asyncWALSnapshotTransaction usage.
...
We must use its result asynchronously.
2023-03-19 12:39:48 +01:00
Gwendal Roué
449c243a36
Rename persistentReaderConnections to dbConfiguration.persistentReadOnlyConnections
2023-03-18 11:08:56 +01:00
Gwendal Roué
6ca4986bc2
CHANGELOG
2023-03-17 13:52:29 +01:00
Gwendal Roué
063877d49c
Configuration.persistentReaderConnections
2023-03-17 13:52:29 +01:00
Gwendal Roué
2f4d0c4588
CHANGELOG
2023-03-17 13:52:29 +01:00
Gwendal Roué
0a544dc0d2
Cleanup relationships between SerializedDatabase, WALSnapshotTransaction, and DatabasePool
...
SerializedDatabase hides its allowsUnsafeTransactions property, and makes it thread-safe by protecting it inside its serialized dispatch queue.
WALSnapshotTransaction always notifies when the reader connection is no longer used, and reuses the "isInsideTransaction" wording.
2023-03-17 13:52:29 +01:00
Gwendal Roué
d64274474b
ValueObservation: stop creating a new connection on start
...
Since #1248 , ValueObservation on DatabasePool creates a new database connection when it starts. #1256 has revealed that opening a connection can take too much time, which unfortunate consequences: the first value is notified too late, and we block the main thread when the observation is started in the `.immediate` scheduling :-/
In this commit, ValueObservation on DatabasePool just uses one of the available readers, thus avoiding creating a new connection.
When WAL snapshots are available, a long-running read-only transaction is kept opened on this reader, until we can start observing the write transactions, compare database versions, and perform a fetch+notification if and only if the database was modified.
When WAL snapshots are not available (Xcode 14.0 and macOS, or specific SQLCipher or SQLite builds), a double notification of the initial value is always performed, since we can't prove that the database was not changed between the initial fetch and the write access.
2023-03-17 13:52:29 +01:00
Gwendal Roué
e66dfacab8
WALSnapshotTransaction
2023-03-17 13:52:29 +01:00
Gwendal Roué
0d4c6e592e
SerializedDatabase.allowsUnsafeTransactions
2023-03-17 13:52:29 +01:00
Gwendal Roué
5d7fdeae5a
Fix compiler warnings in tests
2023-03-17 13:52:01 +01:00
Gwendal Roué
378c6785ea
Clarification on the truncate optimization
2023-03-16 18:44:46 +01:00
Gwendal Roué
6d392f0a87
Use DatabaseError.connectionIsClosed() where appropriate
2023-03-16 13:44:08 +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é
be41d2dd03
Merge branch 'development'
v6.9.2
2023-03-14 08:33:07 +01:00
Gwendal Roué
e6c3a8d07a
v6.9.2
2023-03-14 08:32:58 +01:00
Gwendal Roué
5e41ca7e4e
CHANGELOG
2023-03-14 08:12:38 +01:00