0.1.3 • Published 2 years ago

@eggsnham07/simple-db v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years 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

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago