JSPM

@fusedb/mysql

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 47
  • Score
    100M100P100Q8133F
  • License Apache-2.0

A FUSE driver for storing data using MySQL as the storage engine.

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.

npm i @fushdb/mysql npm license FUSE ⚑


πŸ“¦ 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


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