-
-
Notifications
You must be signed in to change notification settings - Fork 53
RTREE module is not activated by default #218
Copy link
Copy link
Open
Labels
area:buildInstallation, linking, native builds, or dependency compatibility.Installation, linking, native builds, or dependency compatibility.enhancementNew capability or improvement, proposed or implemented.New capability or improvement, proposed or implemented.platform:androidIssue or change affecting Android.Issue or change affecting Android.
Description
Activity
Metadata
Metadata
Assignees
Labels
area:buildInstallation, linking, native builds, or dependency compatibility.Installation, linking, native builds, or dependency compatibility.enhancementNew capability or improvement, proposed or implemented.New capability or improvement, proposed or implemented.platform:androidIssue or change affecting Android.Issue or change affecting Android.
Hi,
It seems that the RTREE extension is not activated by default in react-native-nitro-sqlite.
While performing a schema migration with the following SQL command:
ALTER TABLE mytable RENAME TO mynewtablename;
I encountered the following error:
no such module: rtree
By adding manually in node_modules\react-native-nitro-sqlite\android\CMakeLists.txt:
add_definitions(
-DSQLITE_ENABLE_RTREE
)
The issue is solved, but can it be enabled by default ?
This would help ensure compatibility with databases or queries that depend on RTREE features.
Thanks!