Skip to content

fix: enable SQLite RTree extension - #318

Closed
huytdps13400 wants to merge 1 commit into
margelo:mainfrom
huytdps13400:fix/218-enable-rtree
Closed

huytdps13400 wants to merge 1 commit into
margelo:mainfrom
huytdps13400:fix/218-enable-rtree

Conversation

@huytdps13400

Copy link
Copy Markdown
Contributor

Summary

  • enable SQLITE_ENABLE_RTREE for the bundled SQLite build on Android and iOS
  • add a React Native harness regression test that creates, inserts into, and queries an RTree virtual table
  • document that RTree is available by default

Closes #218.

Verification

  • bun typecheck
  • bun lint
  • bun sqlite build
  • bunx prettier --check README.md example/tests/unit/specs/operations/execute.spec.ts
  • ruby -c packages/react-native-nitro-sqlite/RNNitroSQLite.podspec
  • Android :react-native-nitro-sqlite:assembleDebug for all configured ABIs
  • iOS RNNitroSQLite target build on iOS Simulator
  • iOS harness: 33 unit tests, 1 TypeORM test, and 35 sqlite-vec tests passed
  • bundled sqlite3.c native probe reproduced no such module: rtree without the flag and passed with the flag

Existing test-runner limitation

bun sqlite test --runInBand currently exits during Jest configuration because React Native 0.85 moved its Jest preset to @react-native/jest-preset. The native harness suites above exercise the changed behavior successfully.

@chrispader chrispader added enhancement New capability or improvement, proposed or implemented. area:build Installation, linking, native builds, or dependency compatibility. platform:android Issue or change affecting Android. platform:ios Issue or change affecting iOS. labels Sep 29, 2026
@chrispader

Copy link
Copy Markdown
Member

Thanks for your PR! 馃檶馃徏

I've moved over your changes to #425. Closing this!

@chrispader chrispader closed this Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:build Installation, linking, native builds, or dependency compatibility. enhancement New capability or improvement, proposed or implemented. platform:android Issue or change affecting Android. platform:ios Issue or change affecting iOS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RTREE module is not activated by default

2 participants