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");constdb=newQuorielDB({events: ["databaseConnect","recordUpdate","recordRemove"]});constclient=newForgeClient({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.0View documentation
- Interacting with the database using direct JS functions View documentation
- Transferring data from ForgeDB to QuorielDBView documentation
- Registering custom database types for extensions View documentation