OP-Engineering / op-sqlite

Fastest SQLite library for react-native by @ospfranco
MIT License
603 stars 40 forks source link

Bundle some extensions in the package #79

Closed ospfranco closed 2 months ago

ospfranco commented 7 months ago

Compiling, packaging and loading extensions is complex and error prone. It would be nice if we could take care of this for the most common and used libraries so people only need to turn on a flag an everything is taken care for them.

I've already started with cr-sqlite, you would only need to add OP_SQLITE_CRSQLITE=1 to your env.

I however need more time/effort since every extension has different compilation steps and targets.

Upvote & Fund

Fund with Polar

ospfranco commented 7 months ago

cr-sqlite has been merged, as well as fts5. Other extensions might be requested but will require sponsoring (at least from my part) or PRs.

seanstrom commented 4 months ago

@ospfranco Do you happen to know if any ULID extensions for sqlite would be compatible with op-sqlite?

ospfranco commented 4 months ago

I'm not familiar with the sqlite universe of plugins/extensions, but anything that runs on sqlite itself is compatible with op-sqlite (albeit it might require some minor tweaks to the JS → c++ mapping).

ospfranco commented 2 months ago

I've packaged all the extensions I wanted into the lib. For now closing this. Open a new issue if a new one is necessary.