modelar-sqlite-adapter
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

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"
});

Package Sidebar

Install

npm i modelar-sqlite-adapter

Weekly Downloads

0

Version

3.1.0

License

MIT

Unpacked Size

30.7 kB

Total Files

9

Last publish

Collaborators

  • ayonli