Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/qwiery/qwiery-sql
- Owner: Qwiery
- License: mit
- Created: 2023-12-23T06:33:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-23T07:11:09.000Z (about 1 year ago)
- Last Synced: 2024-11-03T02:21:25.327Z (about 2 months ago)
- Topics: graphdatabase, sql
- Language: TypeScript
- Homepage: https://qwiery.com
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
});```