Gwendal Roué
dc2070981d
Merge pull request #1639 from groue/dev/GRDB7-sendable-async-sequence
...
GRDB 7: ValueObservation async sequence is Sendable
2024-09-28 14:29:28 +02:00
Gwendal Roué
6b2ccebad3
AsyncValueObservation is Sendable
...
A Sendable async sequences plays well with apple/swift-async-algorithms
2024-09-28 13:36:40 +02:00
Gwendal Roué
c404e2d012
Merge pull request #1640 from groue/dev/GRDB7-hide-record-class
...
GRDB 7: Stop mentioning the Record base class in the documentation
2024-09-28 13:36:11 +02:00
Gwendal Roué
20818ee819
Remove the Record class from the documentation
2024-09-28 13:35:11 +02:00
Gwendal Roué
1cd78064c9
Merge pull request #1638 from groue/dev/GRDB7-migration-guide
...
GRDB 7: Migration Guide
2024-09-28 11:18:06 +02:00
Gwendal Roué
ebdd1f1fdf
Fix SPM CI tests
2024-09-28 09:50:34 +02:00
Gwendal Roué
b389547713
Code dump for Swift6Migration test app
2024-09-27 18:02:59 +02:00
Gwendal Roué
d003601d15
TODO
2024-09-27 18:00:07 +02:00
Gwendal Roué
8dbce53ec5
SwiftConcurrency.md
2024-09-27 17:34:32 +02:00
Gwendal Roué
9b6a3b9ec6
SwiftConcurrency.md
...
ChatGPT remarks:
# Overview Section:
The phrase "GRDB optimally schedules those database access closures, in the best interest of the application" is vague and could benefit from more detail on how the scheduling optimizes for concurrency.
# Concurrency Warnings in Swift 6:
"We will address these issues, and provide general guidance in the following sections." This sentence suggests that detailed solutions will be discussed, but it is unclear how each error is related to the following section titles. A more specific reference to which section will cover what would help orient the reader.
# Non-Sendable Record Types Section:
The FAQ format is useful, but it could overwhelm the reader. Breaking up the FAQ into subsections with more concise answers or reordering it based on common issues could improve readability.
# Shorthand Closure Notation Section:
The explanation of why shorthand notation leads to warnings is somewhat technical. It may be helpful to clarify what "may introduce data races" means in practical terms for less experienced developers.
# Choosing Between Synchronous and Asynchronous Database Access:
The section recommends using asynchronous access but leaves open-ended guidance like "this may slow down other tasks". Adding a more concrete explanation of how to balance performance between synchronous and asynchronous approaches would benefit developers.
# General Clarification on Sendable:
Throughout the document, Sendable is mentioned frequently, but less-experienced developers might not fully understand why it matters. A short section or footnote on what Sendable is and why it’s important in Swift 6 concurrency might help provide context for readers unfamiliar with the concept.
2024-09-26 13:27:13 +02:00
Gwendal Roué
cb001cbaa3
SwiftConcurrency.md
2024-09-26 09:43:19 +02:00
Gwendal Roué
521d7847a4
More GRDB 7 migration and Swift concurrency documentation
2024-09-25 20:05:57 +02:00
Gwendal Roué
bc98fdb359
SwiftConcurrency.md
2024-09-24 08:58:07 +02:00
Gwendal Roué
ebe313c3b1
GRDB7MigrationGuide.md
2024-09-23 18:43:33 +02:00
Gwendal Roué
e7e5956698
SwiftConcurrency.md
2024-09-23 18:42:45 +02:00
Gwendal Roué
5d44fc7e52
TODO
2024-09-23 18:42:08 +02:00
Gwendal Roué
aa7c528ef3
Swift Concurrency Guide: GlobalActorIsolatedTypesUsability
2024-09-22 13:50:10 +02:00
Gwendal Roué
7f1a3fd813
Swift Concurrency Guide WIP
2024-09-22 13:50:10 +02:00
Gwendal Roué
48cb4cfb16
GRDB 7 migration guide
2024-09-22 13:50:10 +02:00
Gwendal Roué
2800530b12
Improve documentation of PersistenceContainer subscript getter
2024-09-22 12:51:40 +02:00
Gwendal Roué
ef2251e57c
Test access to SQLite C functions
2024-09-22 12:51:23 +02:00
Gwendal Roué
f7d85b00d1
Fixits
2024-09-22 12:50:58 +02:00
Gwendal Roué
972aa33f68
Avoid optionals in JSON Data to String conversions
2024-09-22 10:10:01 +02:00
Gwendal Roué
89aa353974
StrictConcurrency: databaseDecodingUserInfo and databaseEncodingUserInfo must be declared as a computed property
2024-09-22 10:10:01 +02:00
Gwendal Roué
cc0b401f0a
StrictConcurrency: FetchableRecord.databaseDecodingUserInfo must be declared as a computed property
2024-09-22 10:10:01 +02:00
Gwendal Roué
1be676280f
TODO
2024-09-22 10:10:01 +02:00
Gwendal Roué
938ad7a086
Prefer Data over NSData
2024-09-22 09:29:59 +02:00
Gwendal Roué
0af8415a22
GRDBDemo cleanup
2024-09-22 00:19:05 +02:00
Gwendal Roué
4463374ff3
Merge pull request #1636 from groue/dev/GRDB7-demo
...
GRDB 7: New demo app
2024-09-21 23:58:13 +02:00
Gwendal Roué
be3bce9acc
Fix GRDBTests target
2024-09-21 23:15:01 +02:00
Gwendal Roué
d985314267
Replace the demo apps
2024-09-21 22:04:29 +02:00
Gwendal Roué
9ca2f6e6cc
New manual install test app
2024-09-21 22:04:01 +02:00
Gwendal Roué
6c83b1c52b
README
2024-09-21 21:29:54 +02:00
Gwendal Roué
22d43b67ba
New demo app
2024-09-21 21:18:47 +02:00
Gwendal Roué
e4e3da3a8e
TODO
2024-09-21 17:22:33 +02:00
Gwendal Roué
173f363bdc
TableRecord.databaseSelection should be declared as a computed property
2024-09-21 17:21:59 +02:00
Gwendal Roué
c149d11703
Merge pull request #1635 from groue/dev/GRDB7-any-database
...
GRDB 7: prefer any DatabaseReader and DatabaseWriter
2024-09-21 17:14:49 +02:00
Gwendal Roué
900180dafd
[BREAKING] Prefer any DatabaseReader and DatabaseWriter
2024-09-21 16:50:03 +02:00
Gwendal Roué
23842d8a97
Merge pull request #1634 from groue/dev/GRDB7-bump-requirements
...
GRDB 7: Bump requirements (again)
2024-09-21 15:19:48 +02:00
Gwendal Roué
46e15616a7
[BREAKING] macOS 10.15+
2024-09-21 14:28:24 +02:00
Gwendal Roué
e4a4735494
[BREAKING] tvOS 13+
2024-09-21 13:57:35 +02:00
Gwendal Roué
8c40592955
[BREAKING] iOS 13+
2024-09-21 13:57:23 +02:00
Gwendal Roué
f794d98e49
Merge pull request #1633 from groue/dev/GRDB7-ValueObservation-async-sequence
...
GRDB 7: MainActor ValueObservation scheduling
2024-09-21 13:12:08 +02:00
Gwendal Roué
1649636695
TODO
2024-09-21 12:31:38 +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é
dd28d9734b
Fix GlobalActorIsolatedTypesUsability
2024-09-21 12:15:47 +02:00
Gwendal Roué
e7a95cf0f7
Enable GlobalActorIsolatedTypesUsability
2024-09-21 10:39:44 +02:00
Gwendal Roué
7707bbd1e9
Fix Swiftlint warning
2024-09-21 10:39:36 +02:00