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
33 changes: 17 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,20 @@ jobs:
- name: xcodebuild ${{ matrix.scheme }}
run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="${{ matrix.scheme }}" xcodebuild-raw

linux:
name: Linux
strategy:
matrix:
swift:
- '6.1'
runs-on: ubuntu-latest
container: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v4
- name: Install Build Dependencies
run: |
apt-get update
apt-get install -y libsqlite3-dev
- name: Build
run: swift build
# NB: GRDB 7.6.1 does not currently build on Linux.
# linux:
# name: Linux
# strategy:
# matrix:
# swift:
# - '6.1'
# runs-on: ubuntu-latest
# container: swift:${{ matrix.swift }}
# steps:
# - uses: actions/checkout@v4
# - name: Install Build Dependencies
# run: |
# apt-get update
# apt-get install -y libsqlite3-dev
# - name: Build
# run: swift build

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

47 changes: 28 additions & 19 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ let package = Package(
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.9.0"),
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.5.0"),
.package(url: "https://github.com/pointfreeco/swift-sharing", from: "2.3.0"),
.package(url: "https://github.com/pointfreeco/swift-structured-queries", from: "0.7.0"),
.package(url: "https://github.com/pointfreeco/swift-structured-queries", from: "0.13.0"),
],
targets: [
.target(
Expand Down
5 changes: 1 addition & 4 deletions Sources/StructuredQueriesGRDBCore/Seed.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ extension Database {
/// Insertions are performed in order and in batches of consecutive records of the same table.
///
/// - Parameter build: A result builder closure that inserts every built row.
public func seed(
@InsertValuesBuilder<any StructuredQueriesCore.Table>
_ build: () -> [any StructuredQueriesCore.Table]
) throws {
public func seed(@SeedsBuilder _ build: () -> [any StructuredQueriesCore.Table]) throws {
for insert in Seeds(build) {
try insert.execute(self)
}
Expand Down
Loading