Skip to content

Switch to grdb-flex dependency for multi-platform support and add platforms CI - #405

Closed
marcprux wants to merge 3 commits into
pointfreeco:mainfrom
swift-everywhere:grdb-flex
Closed

marcprux wants to merge 3 commits into
pointfreeco:mainfrom
swift-everywhere:grdb-flex

Conversation

@marcprux

@marcprux marcprux commented Feb 19, 2026 •

Copy link
Copy Markdown

This experimental PR updates the GRDB dependency to instead use https://github.com/swift-everywhere/grdb-flex, which in turn is based on a multiplatform-capable and SQLCipher-supporting source build of SQLite at https://github.com/skiptools/swift-sqlcipher.

@marcprux marcprux changed the title Switch to grdb-flex dependency for multi-platform support and add pla… Switch to grdb-flex dependency for multi-platform support and add platforms CI Feb 19, 2026
@marcprux
marcprux marked this pull request as draft February 19, 2026 23:10
@stephencelis

Copy link
Copy Markdown
Member

@marcprux Is this experiment still a work in progress?

@marcprux

marcprux commented Nov 3, 2026

Copy link
Copy Markdown
Author

I do think it could well work, but it would need buy-in from @groue.

I've transitioned away from swift, so I won't be working on it anymore. I'll close this, but I do think that this PR serves as a good baseline reference for anyone who wants to pick up the work again in the future.

@marcprux marcprux closed this Nov 3, 2026
@groue

groue commented Nov 5, 2026

Copy link
Copy Markdown

Hello! I wish you a happy transition to Rust, @marcprux :-) Your help in shaping my understanding and GRDB's support for alternative SQLite implementations across multiple platforms has been invaluable.

I do think it could well work, but it would need buy-in from @groue.

I'm not sure Point-Free needs my agreement on anything.

Moving away from groue/GRDB means losing the benefits of a reference repository: improvements, bug fixes, and the care taken in addressing non-trivial issues (I'll mention groue/GRDB.swift#1890 here).

I'm glad the latest versions of Xcode appear to support package traits well: groue/GRDB.swift#1882. Since GRDB's current minimum requirements (Swift 6.1+ / Xcode 16.3+) don't provide that support, I'll need to raise them before GRDB can support multiple SQLite and SQLCipher implementations across multiple platforms.

This will be a breaking change, which means an opportunity to clean up the API, use Swift 6.4 features where relevant, etc. So it will take some time.

@marcprux

marcprux commented Nov 5, 2026

Copy link
Copy Markdown
Author

I do think it could well work, but it would need buy-in from @groue.

I'm not sure Point-Free needs my agreement on anything.

Moving away from groue/GRDB means losing the benefits of a reference repository: improvements, bug fixes, and the care taken in addressing non-trivial issues (I'll mention groue/GRDB.swift#1890 here).

Completely agree. What I meant to convey was that I do not believe that it would be wise to proceed with switching sqlite-data to use any sort of bespoke fork of GRDB in order to facilitate the expansion of platform support. I think any foundational changes should be implemented in GRDB itself. The recent improvement in Xcode's package trait support is a promising step towards enabling this, but there's obviously a ton more work that needs to be done, and a ton of careful consideration for ensuring that existing GRDB users don't have anything break out from under them.

In short, I recommend sticking with the upstream GRDB and supporting @groue's tireless efforts and stellar track record as the maintainer of this amazing project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants