Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/themost-framework/sqlite

MOST Web Framework SQLite Data Adapter
https://github.com/themost-framework/sqlite

Last synced: about 7 hours ago
JSON representation

MOST Web Framework SQLite Data Adapter

Awesome Lists containing this project

README

        

![test](https://github.com/themost-framework/sqlite/workflows/test/badge.svg)
[![npm](https://img.shields.io/npm/v/@themost%2Fsqlite.svg)](https://www.npmjs.com/package/@themost%2Fsqlite)
![Libraries.io dependency status for latest release, scoped npm package](https://img.shields.io/librariesio/release/npm/@themost/sqlite)
![GitHub top language](https://img.shields.io/github/languages/top/themost-framework/sqlite)
[![License](https://img.shields.io/npm/l/@themost/sqlite)](https://github.com/themost-framework/sqlite/blob/master/LICENSE)
![GitHub last commit](https://img.shields.io/github/last-commit/themost-framework/sqlite)
![GitHub Release Date](https://img.shields.io/github/release-date/themost-framework/sqlite)
[![npm](https://img.shields.io/npm/dw/@themost/sqlite)](https://www.npmjs.com/package/@themost%2Fsqlite)
![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/@themost/sqlite)

![MOST Web Framework Logo](https://github.com/themost-framework/common/raw/master/docs/img/themost_framework_v3_128.png)

# @themost/sqlite
MOST Web Framework SQLite Data Adapter

License: [BSD-3-Clause](https://github.com/themost-framework/sqlite/blob/master/LICENSE)

## 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