Skip to content

RTREE module is not activated by default #218

Description

@josetahiry

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions