SQLite3 Driver

The SQLite3 driver lets you configure Nymph to query and save data to a SQLite3 database. This includes an in memory SQLite3 database.

Installation

npm install --save @nymphjs/driver-sqlite3

Usage

Supply an instance of this driver with its configuration to Nymph's constructor.

import { Nymph } from '@nymphjs/nymph';
import SQLite3Driver from '@nymphjs/driver-sqlite3';

const sqliteConfig = {
  filename: __dirname + '/mydatabase.db',
};

const nymph = new Nymph({}, new SQLite3Driver(sqliteConfig));

// All done. Nymph is ready to use.

Options

See the config declaration file.