Skip to content

hyurl/modelar-sqlite-adapter

Repository files navigation

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

About

An adapter for Modelar to connect SQLite database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published