Package Exports
- @fusedb/mysql
- @fusedb/mysql/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fusedb/mysql) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
π FUSE Driver: MySQL
A FUSE driver for storing data using MySQL as the storage engine.
π¦ Installation
npm install @fusedb/core
npm install @fusedb/mysql
π Usage
const FUSE = require("@fusedb/core");
const MySQLDriver = require("@fusedb/mysql");
const db = new FUSE({
driver: new MySQLDriver({
host: "localhost",
user: "root",
password: "password",
database: "fusedb",
}),
});
(async () => {
await db.set("example", { hello: "world" });
const data = await db.get("example");
console.log(data); // { hello: "world" }
})();
βοΈ Options
Option | Type | Description |
---|---|---|
host |
string |
Host string for connection |
user |
string |
User string for connection |
password |
string |
Password string for connection |
database |
string |
Database string for connection |
table |
string |
Table name for database |
β Features
- β Full compatibility with FUSE Core API
- β
Persistent storage via
MySQL
π Related
π€ Contributing
We welcome community contributions!
If youβre building your own driver, feel free to publish it using:
fusedb-<name>
- or
@your-org/fusedb-<name>
Follow the FUSE Driver Guidelines for more details.
π§Ύ License
Licensed under the Apache-2.0.