Introduction
Youβre currently viewing our work-in-progress guide. For our legacy documentation, please visit here. Additionally, auto-generated documentation can be found here.
Welcome to Quick.db!
This npm package is designed as an open-source solution that offers a simple approach for developers to store and access data in a low to medium volume setting. The data is stored persistently utilizing either better-sqlite3 or promise-mysql and is supplemented by an array of other convenient quality-of-life features.
β
Persistent Storage
β
Multiple Drivers
β
Works out of the box
β
Beginner Friendly
Installation
First, install the core package.
npm install quick.db
You can choose either better-sqlite3 or promise-mysql as your driver. If youβre not sure, you should use better-sqlite3.
better-sqlite3
const { QuickDB } = require("quick.db");
const db = new QuickDB();
promise-mysql
const { QuickDB, MySQLDriver } = require("quick.db");
(async () => {
const mysql = new MySQLDriver({
host: "localhost",
user: "me",
password: "secret",
database: "my_db",
});
// Important: Connect to MySQL server before using it
await mysql.connect();
const db = new QuickDB({ driver: mysql });
})();