modelar-sqlite-adapter
v3.1.0
Published
An adapter for Modelar to connect SQLite database.
Downloads
5
Readme
Modelar-Sqlite-Adapter
This is an adapter for Modelar to connect SQLite database.
Prerequisites
node
version higher than 4.0.0 (according to node-sqlite3).node-pre-gyp
installed (npm i -g node-pre-gyp
) before install this package.sqlite3
version v3.6+.
Install
npm install modelar-sqlite-adapter --save
How To Use
const { DB } = require("modelar");
const { SqliteAdapter } = require("modelar-sqlite-adapter");
DB.setAdapter("sqlite", SqliteAdapter);
// then using the type 'sqlite' in db.config
DB.init({
type: "sqlite",
database: "sample.db"
});