Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
74 changes: 37 additions & 37 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import CompilerPluginSupport
import PackageDescription

#if canImport(FoundationEssentials)
import FoundationEssentials
import FoundationEssentials
#else
import Foundation
import Foundation
#endif

let package = Package(
Expand Down Expand Up @@ -93,14 +93,14 @@ let package = Package(
exclude: ["Symbolic Links/README.md"]
),

.target(
name: "StructuredQueriesSQLite",
dependencies: [
"StructuredQueries",
"StructuredQueriesSQLiteCore",
"StructuredQueriesSQLiteMacros",
]
),
.target(
name: "StructuredQueriesSQLite",
dependencies: [
"StructuredQueries",
"StructuredQueriesSQLiteCore",
"StructuredQueriesSQLiteMacros",
]
),
.target(
name: "StructuredQueriesSQLiteCore",
dependencies: [
Expand All @@ -116,14 +116,14 @@ let package = Package(
]
),

.target(
name: "StructuredQueriesTestSupport",
dependencies: [
"StructuredQueriesCore",
.product(name: "CustomDump", package: "swift-custom-dump"),
.product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"),
]
),
.target(
name: "StructuredQueriesTestSupport",
dependencies: [
"StructuredQueriesCore",
.product(name: "CustomDump", package: "swift-custom-dump"),
.product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"),
]
),
.testTarget(
name: "StructuredQueriesMacrosTests",
dependencies: [
Expand All @@ -146,12 +146,12 @@ let package = Package(
]
),

.target(
name: "_StructuredQueriesSQLite",
dependencies: [
"StructuredQueriesSQLite"
]
),
.target(
name: "_StructuredQueriesSQLite",
dependencies: [
"StructuredQueriesSQLite"
]
),
],
swiftLanguageModes: [.v6]
)
Expand Down Expand Up @@ -184,23 +184,23 @@ for index in package.targets.indices {
}

#if !canImport(Darwin)
package.targets.append(
.systemLibrary(
name: "_StructuredQueriesSQLite3",
providers: [.apt(["libsqlite3-dev"])]
)
package.targets.append(
.systemLibrary(
name: "_StructuredQueriesSQLite3",
providers: [.apt(["libsqlite3-dev"])]
)
)

for index in package.targets.indices {
if package.targets[index].name == "_StructuredQueriesSQLite" {
package.targets[index].dependencies.append("_StructuredQueriesSQLite3")
}
for index in package.targets.indices {
if package.targets[index].name == "_StructuredQueriesSQLite" {
package.targets[index].dependencies.append("_StructuredQueriesSQLite3")
}
}
#endif

#if !os(Windows)
// Add the documentation compiler plugin if possible
package.dependencies.append(
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.4.0")
)
// Add the documentation compiler plugin if possible
package.dependencies.append(
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.4.0")
)
#endif
2 changes: 1 addition & 1 deletion Sources/StructuredQueriesMacros/TableMacro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ extension TableMacro: MemberMacro {
}
""",
"""
public struct Selection: \(moduleName).TableExpression {
public nonisolated struct Selection: \(moduleName).TableExpression {
public typealias QueryValue = \(type.trimmed)
public let allColumns: [any \(moduleName).QueryExpression]
\(selectionInitializers, separator: "\n")
Expand Down
Loading
Loading