Skip to content

Commit 46f8561

Browse files
authored
StructuredQueries 0.13.0 Support (#132)
* wip * wip * wip * wip * wip * wip * Remove Linux from CI while GRDB doesn't support it
1 parent 9ba95c9 commit 46f8561

File tree

5 files changed

+68
-61
lines changed

5 files changed

+68
-61
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,20 @@ jobs:
4343
- name: xcodebuild ${{ matrix.scheme }}
4444
run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="${{ matrix.scheme }}" xcodebuild-raw
4545

46-
linux:
47-
name: Linux
48-
strategy:
49-
matrix:
50-
swift:
51-
- '6.1'
52-
runs-on: ubuntu-latest
53-
container: swift:${{ matrix.swift }}
54-
steps:
55-
- uses: actions/checkout@v4
56-
- name: Install Build Dependencies
57-
run: |
58-
apt-get update
59-
apt-get install -y libsqlite3-dev
60-
- name: Build
61-
run: swift build
46+
# NB: GRDB 7.6.1 does not currently build on Linux.
47+
# linux:
48+
# name: Linux
49+
# strategy:
50+
# matrix:
51+
# swift:
52+
# - '6.1'
53+
# runs-on: ubuntu-latest
54+
# container: swift:${{ matrix.swift }}
55+
# steps:
56+
# - uses: actions/checkout@v4
57+
# - name: Install Build Dependencies
58+
# run: |
59+
# apt-get update
60+
# apt-get install -y libsqlite3-dev
61+
# - name: Build
62+
# run: swift build

Examples/Examples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 28 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ let package = Package(
3333
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.9.0"),
3434
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.5.0"),
3535
.package(url: "https://github.com/pointfreeco/swift-sharing", from: "2.3.0"),
36-
.package(url: "https://github.com/pointfreeco/swift-structured-queries", from: "0.7.0"),
36+
.package(url: "https://github.com/pointfreeco/swift-structured-queries", from: "0.13.0"),
3737
],
3838
targets: [
3939
.target(

Sources/StructuredQueriesGRDBCore/Seed.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ extension Database {
4949
/// Insertions are performed in order and in batches of consecutive records of the same table.
5050
///
5151
/// - Parameter build: A result builder closure that inserts every built row.
52-
public func seed(
53-
@InsertValuesBuilder<any StructuredQueriesCore.Table>
54-
_ build: () -> [any StructuredQueriesCore.Table]
55-
) throws {
52+
public func seed(@SeedsBuilder _ build: () -> [any StructuredQueriesCore.Table]) throws {
5653
for insert in Seeds(build) {
5754
try insert.execute(self)
5855
}

0 commit comments

Comments
 (0)