Room (KMP) platform implementations of SQLiteDrive...
# room
m
Room (KMP) platform implementations of SQLiteDriver have a method for registering extensions. Has anyone installed an SQLite extension successfully for iOS in production app? From what I understand AppStore blocks loading libraries at runtime 🤔 Is it even possible? I want to use sqlite-vec extension
d
I have not made a production app but AFAIK iOS does allow dlopen / dlsym, however it must not be used to access private iOS APIs and it must not be used to load downloaded code / libraries, in other words, as long as the extension is bundled with the app, it should be OK. Note that only the
BundledSQLiteDriver
would allow you to load extensions since the
NativeSQLiteDriver
that links to iOS's sqlite has loading extensions at runtime turned off, instead you would need to statically link your extension if using the framework SQLite.
m
Thank you! FYI I went with ObjectBox db for now. But I will surely revisit this in the future when I have more time for experiments 🙇
d
No problem! Use what works best for your case, hehe.
🙌 1
h
You might want to take a look at this😉github.com/hub-bla/room-vec
K 1