Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Native support #103

Open
microchipgnu opened this issue Oct 11, 2023 · 6 comments
Open

React Native support #103

microchipgnu opened this issue Oct 11, 2023 · 6 comments

Comments

@microchipgnu
Copy link

microchipgnu commented Oct 11, 2023

I was wondering if it is possible to use this extension with Expo SQLite (ideally) or with react-native-sqlite-storage. Let me know if anyone's tried this

@snehmehta
Copy link

Hey @microchipgnu, I am wondering the same and that's what lead me to this ticket.
Did you by any chance tried it?

@Volland
Copy link

Volland commented Apr 11, 2024

i looking for same . we need a vss extension as part of expo

@Volland
Copy link

Volland commented Apr 17, 2024

i found https://github.com/OP-Engineering/op-sqlite that able to load an extensions in react naytive but for this I need a vss and vector extension precompiled for ios and android . really looking for a guide how to doit

@hmbrg
Copy link

hmbrg commented Apr 18, 2024

I'm also looking into this. Maybe it would be much simpler to use this relatively new but simpler SQLite extension and compile it for Android and iOS.

@Volland
Copy link

Volland commented Apr 18, 2024

@hmbrg looks interesting but looks like inmemory solution . so depends on usecase. we have a lot of entities with vectors but thanks for reference .

@ospfranco
Copy link

Hi, I'm the author of op-sqlite. Yes you can with op-sqlite (maybe with expo-sqlite too). Don't use sqlite-storage it is old and slow.

You need to compile this crate into dylibs you can load on runtime. I'm still figuring the compilation process for this crate on different systems (if you cannot use the prebuilts). But once you have those you can just call the load_extension function of op-sqlite.

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

No branches or pull requests

5 participants