Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
import Foundation

public struct _CodableJSONRepresentation<QueryOutput: Codable>: QueryRepresentable {
public struct _CodableJSONRepresentation<QueryOutput: Codable>: Codable, QueryRepresentable {
public var queryOutput: QueryOutput

public init(queryOutput: QueryOutput) {
self.queryOutput = queryOutput
}
}

extension _CodableJSONRepresentation: Equatable where QueryOutput: Equatable {}
extension _CodableJSONRepresentation: Hashable where QueryOutput: Hashable {}
extension _CodableJSONRepresentation: Sendable where QueryOutput: Sendable {}

extension Decodable where Self: Encodable {
/// A query expression representing codable JSON.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/StructuredQueriesSQLiteCore/JSONFunctions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ extension QueryExpression {
}
}

extension QueryExpression where QueryValue: Codable & QueryBindable {
extension QueryExpression where QueryValue: Codable {
/// A JSON array aggregate of this expression
///
/// Concatenates all of the values in a group.
Expand Down