@fusedb/postgres
v0.0.1
Published
A FUSE driver for storing data using Postgres as the storage engine.
Maintainers
Readme
🔌 FUSE Driver: Postgres
A FUSE driver for storing data using Postgres as the storage engine.
📦 Installation
npm install @fusedb/core
npm install @fusedb/postgres🚀 Usage
const FUSE = require("@fusedb/core");
const PostgresDriver = require("@fusedb/postgres");
const db = new FUSE({
driver: new PostgresDriver({
connectionString: "postgresql://user:password@host:port/dbname",
}),
});
(async () => {
await db.set("example", { hello: "world" });
const data = await db.get("example");
console.log(data); // { hello: "world" }
})();⚙️ Options
| Option | Type | Description |
| ------ | ----- | ------------------------------------------- |
| connectionString | string | PostgreSQL connection string |
| table | string | Table name for database |
✅ Features
- ✅ Full compatibility with FUSE Core API
- ✅ Persistent storage via
Postgres
📚 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.
