MOST Web Framework SQLite Data Adapter
License: BSD-3-Clause
npm install @themost/sqlite
Register SQLite adapter on app.json as follows:
"adapterTypes": [
...
{ "name":"SQLite Data Adapter", "invariantName": "sqlite", "type":"@themost/sqlite" }
...
],
adapters: [
...
{
"name":"local-db", "invariantName":"sqlite", "default":true,
"options": {
database:"db/local.db"
}
}
...
]
}
SQLite Data Adapter comes with a regular expression extension for SQLite (regexp.c). You have to compile this extension as follows:
gcc -shared -fPIC -Isqlite3 -o regexp.0.dylib regexp.c
gcc -dynamiclib -fPIC -Isqlite3 -o regexp.0.dylib regexp.c
cl /Gd regexp.c /I sqlite3 /DDLL /LD /link /export:sqlite3_extension_init /out:regexp.0.dylib