sqlite-vss icon indicating copy to clipboard operation
sqlite-vss copied to clipboard

React Native support

Open microchipgnu opened this issue 9 months ago • 6 comments

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

microchipgnu avatar Oct 11 '23 07:10 microchipgnu

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

snehmehta avatar Nov 08 '23 18:11 snehmehta

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

Volland avatar Apr 11 '24 09:04 Volland

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

Volland avatar Apr 17 '24 08:04 Volland

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.

hmbrg avatar Apr 18 '24 01:04 hmbrg

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

Volland avatar Apr 18 '24 06:04 Volland

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.

ospfranco avatar May 02 '24 05:05 ospfranco