-
// swift-tools-version: 6.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
// ...
dependencies: [
// ...
.package(url: "https://github.com/pointfreeco/sqlite-data",
.upToNextMajor(from: "1.3.0"),
traits: ["SQLiteDataTagged"]),
.package(url: "https://github.com/pointfreeco/swift-structured-queries",
.upToNextMajor(from: "0.25.2"),
traits: ["StructuredQueriesTagged"]),
.package(url: "https://github.com/pointfreeco/swift-tagged.git", from: "0.10.0"),
],
targets: [
.target(
// ...
dependencies: [
// ...
.product(name: "SQLiteData", package: "sqlite-data"),
.product(name: "StructuredQueries", package: "swift-structured-queries"),
.product(name: "Tagged", package: "swift-tagged"),
.product(name: "Dependencies", package: "swift-dependencies"),
]
),
// ...
]
)
import Foundation
import SQLiteData
import Tagged
@Table
public struct MyModel: Hashable, Identifiable {
public typealias ID = Tagged<Self, UUID>
// Cannot convert value of type 'Tagged<MyModel, UUID.UppercasedRepresentation>.Type'
// to expected argument type 'any QueryRepresentable.Type'
@Column(as: Tagged<Self, UUID.UppercasedRepresentation>.self)
public let id: ID
}It looks like |
Beta Was this translation helpful? Give feedback.
Answered by
VentanYu
Nov 16, 2025
Replies: 1 comment 2 replies
-
|
I found the solution myself: ...
.target(
// ...
dependencies: [
// ...
.product(name: "Tagged", package: "swift-tagged"),
// This package is not really needed
// .product(name: "StructuredQueries", package: "swift-structured-queries"),
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "SQLiteData", package: "sqlite-data"),
],The key is to adjust the order of dependencies, placing the basic packages at the front. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
VentanYu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found the solution myself:
The key is to adjust the order of dependencies, placing the basic packages at the front.