Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qwiery/qwiery-sql

SQL adapter for Qwiery. It allows you to use a SQL database as a graph database.
https://github.com/qwiery/qwiery-sql

graphdatabase sql

Last synced: about 2 months ago
JSON representation

SQL adapter for Qwiery. It allows you to use a SQL database as a graph database.

Awesome Lists containing this project

README

        

# 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.

```bash
npm install @orbifold/sql
```

```js
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
}
});

```