Gwendal Roué
|
6a980f90da
|
Async sequence is unsuitable for preventing flash of missing content
See https://forums.swift.org/t/52862 for a longer explanation.
Fortunately, we can base @Query on Combine publishers, which do not have this problem.
|
2021-10-18 08:41:44 +02:00 |
|
Gwendal Roué
|
e4bfea8bcc
|
Use inserted(_:) in order to avoid a temporary variable
|
2021-10-17 21:25:19 +02:00 |
|
Gwendal Roué
|
329a7c8301
|
@Query cleanup & documentation
|
2021-10-17 14:09:53 +02:00 |
|
Gwendal Roué
|
1ff5159d40
|
Add the MIT license to Query.swift
This file is designed to be copied into user apps: make sure the license comes along.
|
2021-10-17 13:38:28 +02:00 |
|
Gwendal Roué
|
d6f8a9a9ea
|
UIKit demo app is iOS15+/watchOS8+
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
c711efc7e0
|
Combine demo app is iOS15+
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
01d2bc89a9
|
Cleanup async demo app
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
6bcee422b7
|
Improve tests of async demo app
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
07faea9cfe
|
Restore demo app tests
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
b76950f695
|
Follow EnvironmentValues.managedObjectContext example: appDatabase is not optional
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
b9e79791a3
|
Modernize syntax
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
533cef692f
|
Use SwiftUI Label
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
0bed585fd0
|
Use dismiss from SwiftUI environment
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
54bef0bba6
|
Workaround "flash of missing content" https://forums.swift.org/t/52862
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
a7820f9a35
|
Cleanup
|
2021-10-17 13:26:42 +02:00 |
|
Gwendal Roué
|
bd89311f4d
|
Refactor Query for async sequences
|
2021-10-17 13:26:41 +02:00 |
|
Gwendal Roué
|
1e17bf011f
|
Refactor Query for AppDatabase access
|
2021-10-17 13:26:41 +02:00 |
|
Gwendal Roué
|
ed8ff31b3e
|
GRDBAsyncDemo
|
2021-10-17 13:26:41 +02:00 |
|
Gwendal Roué
|
0ead20cdd6
|
All async apis are experimental
|
2021-10-17 13:26:41 +02:00 |
|
Gwendal Roué
|
2ad6131d08
|
Require canImport(_Concurrency)
This fixes the build for macOS 11.5
|
2021-10-17 13:26:41 +02:00 |
|
Gwendal Roué
|
646782d499
|
test AsyncValueObservation with all DatabaseQueue & Pool
Also use .trackingConstantRegion since it triggers optimizations
|
2021-10-17 13:24:10 +02:00 |
|
Gwendal Roué
|
a888c46b1a
|
New: AsyncValueObservation
|
2021-10-17 13:24:10 +02:00 |
|
Gwendal Roué
|
046d1d6355
|
-Xfrontend -warn-concurrency -Xfrontend -enable-actor-data-race-checks
|
2021-10-17 13:24:10 +02:00 |
|
Gwendal Roué
|
8936ef6a40
|
DatabaseMigrator async methods
migrate(_:)
migrate(_:upTo:)
|
2021-10-17 13:24:10 +02:00 |
|
Gwendal Roué
|
8754b10a40
|
Documentation of DatabaseWriter async methods
|
2021-10-17 13:24:10 +02:00 |
|
Gwendal Roué
|
1f73c20ae2
|
DatabaseWriter async methods
write, writeWithoutTransaction, barrierWriteWithoutTransaction, erase, vacuum, vacuum(into:)
|
2021-10-17 13:24:10 +02:00 |
|
Gwendal Roué
|
a827188881
|
async DatabaseReader.unsafeRead
|
2021-10-17 13:23:34 +02:00 |
|
Gwendal Roué
|
64be4763f2
|
async DatabaseReader.read
|
2021-10-17 13:23:34 +02:00 |
|
Gwendal Roué
|
20a1c8666e
|
Merge pull request #1078 from groue/dev/qol
More convenience methods
|
2021-10-17 13:21:22 +02:00 |
|
Gwendal Roué
|
e6f00a7c4b
|
CHANGELOG
|
2021-10-17 13:11:06 +02:00 |
|
Gwendal Roué
|
aa05148a18
|
Documentation
|
2021-10-17 13:05:07 +02:00 |
|
Gwendal Roué
|
94c86211bc
|
Add inserted and saved in the list of record methods
|
2021-10-17 13:00:13 +02:00 |
|
Gwendal Roué
|
b4570c0e84
|
Fix typos in Table documentation
|
2021-10-17 12:56:24 +02:00 |
|
Gwendal Roué
|
8c9ac0ecd2
|
Documentation for exists, isEmpty, saved, inserted
|
2021-10-17 12:28:42 +02:00 |
|
Gwendal Roué
|
5f44162abe
|
Rename request.exists(_:) to isEmpty(_:)
|
2021-10-17 12:27:19 +02:00 |
|
Gwendal Roué
|
55b938a1f5
|
Test exists(_:), exists(_🔑) and exists(_🆔)
|
2021-10-17 12:27:19 +02:00 |
|
Gwendal Roué
|
235ea2e689
|
Test saved(_:) and inserted(_:)
|
2021-10-17 12:27:19 +02:00 |
|
Gwendal Roué
|
7a046fb27e
|
exists(_:) quality of life improvements
|
2021-10-17 12:27:19 +02:00 |
|
Gwendal Roué
|
cbd68099a9
|
inserted(_:) and saved(_:) quality of life improvements
|
2021-10-17 12:27:19 +02:00 |
|
Gwendal Roué
|
6d44c05f3b
|
DatabasePool.erase() prevents concurrent reads until it has completed
|
2021-10-13 14:46:47 +02:00 |
|
Gwendal Roué
|
fe6d4665ee
|
CHANGELOG
|
2021-10-12 18:32:38 +02:00 |
|
Gwendal Roué
|
0c6c2c7eb4
|
Merge pull request #1076 from groue/dev/require-swift-5.3
Require Swift 5.3
|
2021-10-12 18:29:44 +02:00 |
|
Gwendal Roué
|
03fe178439
|
Bump Xcode compatibility version of projects (Xcode 12+)
|
2021-10-11 17:13:26 +02:00 |
|
Gwendal Roué
|
ff126c1543
|
SE-0276 Multi-Pattern Catch Clauses
|
2021-10-11 16:24:38 +02:00 |
|
Gwendal Roué
|
038c320f07
|
Require Swift 5.3.
|
2021-10-11 16:18:29 +02:00 |
|
Gwendal Roué
|
ba88a150c0
|
Improve inline doc of database access methods
|
2021-10-11 15:50:06 +02:00 |
|
Gwendal Roué
|
32df5e27c3
|
Test for DatabaseRegionObservation tracking DatabaseRegion.fullDatabase
|
2021-10-01 11:13:41 +02:00 |
|
Gwendal Roué
|
2d4398798a
|
SE-0299 for DatabaseRegionConvertible.fullDatabase
|
2021-10-01 11:13:20 +02:00 |
|
Gwendal Roué
|
32b2923e89
|
Merge branch 'development'
v5.12.0
|
2021-09-25 19:44:17 +02:00 |
|
Gwendal Roué
|
dbb4668033
|
v5.12.0
|
2021-09-25 19:13:10 +02:00 |
|