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
10 changes: 4 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ let package = Package(
.target(
name: "StructuredQueriesCore",
dependencies: [
"StructuredQueriesSupport",
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
.product(
name: "Tagged",
package: "swift-tagged",
condition: .when(traits: ["StructuredQueriesTagged"])
),
]
],
exclude: ["Symbolic Links/README.md"]
),
.target(
name: "StructuredQueries",
Expand All @@ -68,10 +68,10 @@ let package = Package(
.macro(
name: "StructuredQueriesMacros",
dependencies: [
"StructuredQueriesSupport",
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
]
],
exclude: ["Symbolic Links/README.md"]
),
.target(
name: "StructuredQueriesSQLite",
Expand Down Expand Up @@ -107,8 +107,6 @@ let package = Package(
.product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"),
]
),

.target(name: "StructuredQueriesSupport"),
],
swiftLanguageModes: [.v6]
)
Expand Down
10 changes: 4 additions & 6 deletions [email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ let package = Package(
.target(
name: "StructuredQueriesCore",
dependencies: [
"StructuredQueriesSupport",
.product(name: "IssueReporting", package: "xctest-dynamic-overlay"),
]
],
exclude: ["Symbolic Links/README.md"]
),
.target(
name: "StructuredQueries",
Expand All @@ -55,10 +55,10 @@ let package = Package(
.macro(
name: "StructuredQueriesMacros",
dependencies: [
"StructuredQueriesSupport",
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
]
],
exclude: ["Symbolic Links/README.md"]
),
.target(
name: "StructuredQueriesSQLite",
Expand Down Expand Up @@ -94,8 +94,6 @@ let package = Package(
.product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"),
]
),

.target(name: "StructuredQueriesSupport"),
],
swiftLanguageModes: [.v6]
)
Expand Down
1 change: 0 additions & 1 deletion Sources/StructuredQueriesCore/Exports.swift

This file was deleted.

1 change: 0 additions & 1 deletion Sources/StructuredQueriesCore/QueryBinding.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import StructuredQueriesSupport

/// A type that enumerates the values that can be bound to the parameters of a SQL statement.
public enum QueryBinding: Hashable, Sendable {
Expand Down
2 changes: 0 additions & 2 deletions Sources/StructuredQueriesCore/QueryFragment.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import StructuredQueriesSupport

/// A type representing a SQL string and its bindings.
///
/// You will typically create instances of this type using string literals, where bindings are
Expand Down
1 change: 0 additions & 1 deletion Sources/StructuredQueriesCore/SQLite/JSONFunctions.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import StructuredQueriesSupport

extension QueryExpression {
/// Passes this expression and the given one to the `json_patch` function.
Expand Down
5 changes: 5 additions & 0 deletions Sources/StructuredQueriesCore/Symbolic Links/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Symbolic Links

This directory contains symbolic links to shared source code used
by the StructuredQueriesCore target. This is a workaround until
SwiftPM has native support for sharing code between macros and targets.
1 change: 0 additions & 1 deletion Sources/StructuredQueriesCore/TableAlias.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Foundation
import StructuredQueriesSupport

/// A type identifying a table alias.
///
Expand Down
1 change: 0 additions & 1 deletion Sources/StructuredQueriesMacros/SelectionMacro.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import StructuredQueriesSupport
import SwiftBasicFormat
import SwiftDiagnostics
import SwiftSyntax
Expand Down
5 changes: 5 additions & 0 deletions Sources/StructuredQueriesMacros/Symbolic Links/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Symbolic Links

This directory contains symbolic links to shared source code used
by the StructuredQueries macros. This is a workaround until SwiftPM
has native support for sharing code between macros and targets.
1 change: 0 additions & 1 deletion Sources/StructuredQueriesMacros/TableMacro.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import StructuredQueriesSupport
import SwiftBasicFormat
import SwiftDiagnostics
import SwiftSyntax
Expand Down
2 changes: 1 addition & 1 deletion Tests/StructuredQueriesTests/InflectionTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import StructuredQueriesSupport
import StructuredQueriesCore
import Testing

@Suite struct InflectionTests {
Expand Down