0.1.3 • Published 12 months ago

@eggsnham07/simple-db v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

How to use:

First you must create the database

const Database = require("@eggsnham07/simple-db");
const db = new Database(<dbName>);

Database has 2 parameters, both are optional:

  • dbName: string
  • opts:
    • disableSafeShutdown: boolean
    • disableDbRestore: boolean

Setting database items

db.set(key: string, value: any) -> void

Example:

db.set("user_count", 135);

Getting database items

db.get(key: string) -> any

Example

console.log(db.get("user_count"));

Output: 135

0.1.3

12 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.0.3

12 months ago

0.0.2

12 months ago