Adopt GRDB with system SQLite for native indexing - #144
Merged
Merged
Conversation
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an opt-in
MarkdownUtilitiesIndexlibrary backed by upstream GRDB 7.11.1 and system SQLite. Opening an index first exercises JSON queries, a JSON expression index, and FTS5 through an in-memory GRDB connection. Failed checks report the runtime and OS/distribution remedy before creating or changing an index file.Implements the selected option 1 from #137 and prepares the database foundation for #138. Core, WASM, and existing CLI/server products do not depend on the index target. No bundled SQLite or custom C bridge is included. Documentation records option 3 as a SwiftPM fallback and rejects the Xcode custom-framework approach; StructuredQueries remains deferred.
Validation
swift build, CLI help, and the full host suite: 1,350 tests passed.Limitations
The standalone Swift 6.3.1 compiler crashed while optimizing upstream GRDB's
NSUUID.fromDatabaseValueagainst SDK 27 beta. Debug tests passed; the matching SDK compiler built release successfully. No dependency source patch or Xcode framework workflow was introduced.All Linux Docker verification steps completed successfully, but the local Docker engine failed with a snapshot I/O error while unpacking the final image. This occurred after compilation, tests, and measurement checks. The new CI workflow exercises macOS and Linux independently.
Refs #137. Indexing, query commands, and server integration remain in their subsequent issues.