4.2.6 • Published 2 months ago

qdb3 v4.2.6

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

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.

4.2.6

2 months ago

4.2.5

2 months ago

4.2.4

2 months ago

4.2.3

2 months ago

4.2.2

2 months ago

4.2.1

2 months ago

4.2.0

2 months ago

4.0.5

3 months ago

4.0.4

3 months ago

4.0.6

3 months ago

4.1.0

3 months ago

4.0.3

3 months ago

4.0.1

3 months ago

4.0.0

3 months ago

4.0.2

3 months ago

3.3.0-fixed

5 months ago

3.2.0-final

5 months ago