From f2b0b1869c8d6c64ac95d3b0b84da35ee3239ceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 31 Mar 2024 11:31:36 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9A=A0=EF=B8=8F=20Make=20TableAlias=20Sendab?= =?UTF-8?q?le=20even=20if=20it=20is=20not=20yet.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift | 4 +++- TODO.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift b/GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift index d364a6bbb..8715e0af9 100644 --- a/GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift +++ b/GRDB/QueryInterface/SQLGeneration/SQLGenerationContext.swift @@ -213,7 +213,9 @@ class StatementArgumentsSink { /// See ``TableRequest/aliased(_:)`` for more information and examples. /// /// - note: [**🔥 EXPERIMENTAL**](https://github.com/groue/GRDB.swift/blob/master/README.md#what-are-experimental-features) -public class TableAlias { +public class TableAlias: @unchecked Sendable { + // This Sendable conformance is transient. TableAlias IS NOT really Sendable. + // TODO: GRDB7 Make TableAlias really Sendable private enum Impl { /// A TableAlias is undefined when it is created by the GRDB user: /// diff --git a/TODO.md b/TODO.md index 963aaac0f..b9afc15c2 100644 --- a/TODO.md +++ b/TODO.md @@ -171,7 +171,7 @@ - [ ] sqlspecificexpressible - [ ] sqlsubquery - [ ] sqlsubqueryable - - [ ] tablealias + - [!] tablealias - [X] transactionclock - [ ] valueobservation - [X] valueobservationscheduler