@themost/sqlite
TypeScript icon, indicating that this package has built-in type declarations

2.7.0 • Public • Published

test npm Libraries.io dependency status for latest release, scoped npm package GitHub top language License GitHub last commit GitHub Release Date npm Snyk Vulnerabilities for npm package

MOST Web Framework Logo

@themost/sqlite

MOST Web Framework SQLite Data Adapter

License: BSD-3-Clause

Install

npm install @themost/sqlite

Usage

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"
        }
    }
    ...
]

}

Post Installation Note:

SQLite Data Adapter comes with a regular expression extension for SQLite (regexp.c). You have to compile this extension as follows:

Using GCC/MinGW on Windows and Linux

gcc -shared -fPIC -Isqlite3 -o regexp.0.dylib regexp.c

Using GCC on Mac OSX

gcc -dynamiclib -fPIC -Isqlite3 -o regexp.0.dylib regexp.c

Microsoft Tools on Windows

cl /Gd regexp.c /I sqlite3 /DDLL /LD /link /export:sqlite3_extension_init /out:regexp.0.dylib

Readme

Keywords

none

Package Sidebar

Install

npm i @themost/sqlite

Weekly Downloads

52

Version

2.7.0

License

BSD-3-Clause

Unpacked Size

571 kB

Total Files

24

Last publish

Collaborators

  • themost