rhashimoto / wa-sqlite

WebAssembly SQLite with support for browser storage extensions
MIT License
861 stars 54 forks source link

Full text support #77

Closed adam-lynch closed 1 year ago

adam-lynch commented 1 year ago

We're evaluating wa-sqlite for a project. Would it be im/possible to set up full text support (fts5)? If possible, roughly how so? I see there's a call to create_module to add ARRAY. Or would we need to customize the Makefile? I read that "FTS5 is included as part of the SQLite amalgamation" but the Makefile already mentions "amalgamation" so I'm not sure. NOTE: I'm using the buildless branch right now.

sgbeal commented 1 year ago

You shouldn't need to do anything more than add a line to the makefile:

-DSQLITE_ENABLE_FTS5

and rebuild.

adam-lynch commented 1 year ago

Thanks