4.0.1 • Published 5 months ago

@orbifold/sql v4.0.1

Weekly downloads
-
License
-
Repository
github
Last release
5 months ago

Qwiery SQL Adapter

This Qwiery adapter allows to use a Sql backend. It replaces the default JSON adapter and transparently uses the same Qwiery API.

 npm install @orbifold/sql
import {Qwiery} from "@orbifold/dal";
import {Sql} from "@orbifold/sql";
// add the plugin to Qwiery
Qwiery.plugin(Sql);
const q = new Qwiery({
    // define which adapter to use (this replaces the default JSON adapter)
    adapters: ["sql"],
    // optional: replace the defaults (sqlite) to connect
    sql: {
        // the Sequelize options will be passed unchanged
        // https://sequelize.org/api/v7/interfaces/_sequelize_core.index.options
    }
});