@themost/sqlite
MOST Web Framework 2.0 - SQLite data adapter
Last updated a month ago by themost .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @themost/sqlite 
SYNC missed versions from official npm registry.

test npm GitHub top language License GitHub last commit GitHub Release Date npm Snyk Vulnerabilities for npm package

@themost/sqlite

MOST Web Framework SQLite Data Adapter

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

}

If you are intended to use SQLite adapter as the default database adapter set the property "default" to true.

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

Current Tags

  • 2.5.0                                ...           latest (a month ago)
  • 2.2.4-dev.1                                ...           next (2 months ago)

14 Versions

  • 2.5.0                                ...           a month ago
  • 2.2.4                                ...           2 months ago
  • 2.2.4-dev.1                                ...           2 months ago
  • 2.2.3                                ...           4 months ago
  • 2.2.2                                ...           4 months ago
  • 2.2.1                                ...           a year ago
  • 2.1.5                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.0.6                                ...           2 years ago
  • 2.0.5                                ...           2 years ago
  • 2.0.4                                ...           2 years ago
  • 2.0.0-alpha.1                                ...           3 years ago
  • 2.0.0-alpha                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 2
Dependencies (2)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |