An intuitive and high-performance interface for working with databases in ForgeScript, providing reliable and scalable data storage using LMDB.
npm i @quoriel/db lmdb
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("...");- Configuring the database to fit your bot's needs View documentation
- Setting default values for missing data via schemas View documentation
- Migrating databases created with versions below 2.0.0 View documentation
- Interacting with the database using direct JS functions View documentation
- Transferring data from ForgeDB to QuorielDB View documentation
- Registering custom database types for extensions View documentation