@quoriel/db
v2.1.1
Published
Powerful and flexible interface for working with databases in ForgeScript, integrating LMDB support for reliable data storage
Downloads
393
Readme
QuorielDB
An intuitive and high-performance interface for working with databases in ForgeScript, providing reliable and scalable data storage using LMDB.
Installation
npm i @quoriel/db lmdbConnection
const { ForgeClient } = require("@tryforge/forgescript");
const { QuorielDB } = require("@quoriel/db");
const db = new QuorielDB({
events: [
"databaseConnect",
"recordUpdate",
"recordRemove"
]
});
const client = new ForgeClient({
extensions: [
db
]
});
// Loading events.
db.commands.load("events");
client.login("...");Useful
- Configuring config.json and variables.json files View documentation
- Database migration for versions below 2.0.0 View documentation
- Database interaction using direct JS functions View documentation
- Database transfer from ForgeDB to QuorielDB View documentation
