File tree Expand file tree Collapse file tree 2 files changed +139
-139
lines changed
Sources/StructuredQueriesCore/SQLite
Tests/StructuredQueriesTests Expand file tree Collapse file tree 2 files changed +139
-139
lines changed Original file line number Diff line number Diff line change @@ -195,8 +195,8 @@ extension PrimaryKeyedTableDefinition where QueryValue: _OptionalProtocol & Coda
195195 }
196196}
197197
198- extension TableDefinition {
199- public var jsonObject : some QueryExpression < QueryValue > {
198+ extension TableDefinition where QueryValue : Codable & Sendable {
199+ public var jsonObject : some QueryExpression < _CodableJSONRepresentation < QueryValue > > {
200200 func open< TableColumn: TableColumnExpression > ( _ column: TableColumn ) -> QueryFragment {
201201 typealias Value = TableColumn . QueryValue . _Optionalized . Wrapped
202202
@@ -243,8 +243,8 @@ extension TableDefinition {
243243 }
244244}
245245
246- extension Optional . TableColumns {
247- public var jsonObject : some QueryExpression < QueryValue > {
246+ extension Optional . TableColumns where QueryValue : Codable & Sendable {
247+ public var jsonObject : some QueryExpression < _CodableJSONRepresentation < Wrapped > ? > {
248248 Case ( ) . when ( rowid. isNot ( nil ) , then: Wrapped . columns. jsonObject)
249249 }
250250}
You can’t perform that action at this time.
0 commit comments