qdb3 v4.2.6
Q.D.B.
Intro
QuickDataBase is a module for testing. The module supports basic disk operations, however not specialized DB operations like search.
Why Q.D.B.?
QDB aims to reduce hassle with the fs
module for new programmers.
Usefull for small scale projects that requires fast synchronous and asynchronous response.
Pros:
- Only kilobytes of ram required
- Easy to use
- Fully local
- Easy setup
Cons:
- May require a weird import in some cases (check importing)
- Only supports it's own DB stucture
- Not advised for large scale projects
- Doesn't support more complex DB calls like search or filter.
Importing
General import method:
const { DataBase } = require("qdb3");
const DB = new DataBase("path-to-db-folder");
Importing the module can be tedious if something's wrong. One fix that I found working most of the time is the following:
let DB;
(async()=>{
DB = new (await import("qdb3")).default("path-to-db-folder");
})();
Typescript support (experimnental, may break):
import DataBase from "qdb3";
const DB: DataBase = new DataBase("path-to-db-folder");
Disclaimer
THIS MODULE DOES NOT ENCRYPT NOR BACK UP ANYTHING. IT IS NOT ADVISED TO STORE ANY IMPORTANT INFORMATION WITH THIS MODULE. I AM NOT LIABLE IN ANY WAY FOR ANY DATA LEAK OR DATA LOSS.
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
5 months ago
5 months ago