5.0.0 • Published 4 months ago

mskdb v5.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

mskdb

npm version License

Description

This is a pure json based javascript noqsl database.

Table of Contents

Installation

To install and run the project, follow these steps:

  1. Clone the repository.
   npm i mskdb

## Configuration
This is the basic configuration of the package

```bash
const userDB = new MskJsonDb({
    name: "Users", // the database name
    extention: "db", // the database extension
    directory: "model", // default directory to save all your db files
    backup: false //beoloen true | false
    backup_path: "./bk" // this is a path to your backup file
});

database name

const userDB = new MskJsonDb({
    name: "Users", // the database name
});

database extension

const userDB = new MskJsonDb({
    extention: "db", // the database extension
});


database directory

const userDB = new MskJsonDb({
    directory: "model", // default directory to save all your db files
});

database backup
const userDB = new MskJsonDb({
    backup: false //beoloen true | false
});

when the backup is enable it will automatically save all your file once any chances is made


database backup_path
const userDB = new MskJsonDb({
    backup_path: "./bk" // this is a path to your backup file
});

## Usage

To use this database in your project simply follow this examples


 ```bash

# creating new database
db = new MSK("database name", "database extension")


# deleting existing database
db.format();


# inserting data into the database
db.insert({ name: "peter", age: 19, profession: "Software developer" });


# dropping a row
db.drop(5);


# updating a row
db.update(5, { name: "peter", age: 19, profession: "graphics designer" });
5.0.0

4 months ago

4.1.0

4 months ago

4.2.0

4 months ago

3.2.1

4 months ago

3.1.2

4 months ago

3.2.0

4 months ago

3.1.1

4 months ago

3.1.0

4 months ago

2.5.5

4 months ago

2.2.1

4 months ago

2.2.0

4 months ago

2.2.3

4 months ago

2.2.2

4 months ago

2.2.5

4 months ago

4.0.0

4 months ago

2.2.4

4 months ago

2.4.5

4 months ago

2.3.5

4 months ago

2.1.0

4 months ago

2.0.0

4 months ago

1.0.0

3 years ago