Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/themost-framework/sqlite
- Owner: themost-framework
- License: bsd-3-clause
- Created: 2020-04-28T15:56:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-02T19:04:41.000Z (14 days ago)
- Last Synced: 2024-11-02T19:06:09.522Z (14 days ago)
- Language: JavaScript
- Homepage:
- Size: 943 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 AdapterLicense: [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