DEV Community

ZDev1
ZDev1

Posted on

ShiftDB: The most powerful database

ShiftDB: The most powerful database

Introduction

ShiftDB is a simple, fast, powerful, CLI based ,JSON based database, helps developers to develop apps.
Created by ZDev1


Getting Started

And now, fork the repo/repl and add this to your JavaScript file:
First:

$ npm install
Enter fullscreen mode Exit fullscreen mode
I am thinking of buying an NPM package...
const Shift = require('./shift');
const database = new Shift();
Enter fullscreen mode Exit fullscreen mode

Documentation

1. Get all the keys

To get all the keys that they're in the database, just type:

database.getAll();
Enter fullscreen mode Exit fullscreen mode

2. Get a key

To get one key and it's value, just type:

database.get('key');
Enter fullscreen mode Exit fullscreen mode

3. Make a key

To set a key (or to create a key as well), just type:

database.set('key', 'value');
Enter fullscreen mode Exit fullscreen mode

4. Delete a key

To delete a key from the database, just type:

database.del('key');
Enter fullscreen mode Exit fullscreen mode

CLI Documentation

As I said before, I made a CLI for the database.
Make sure to open your terminal :)

Help:

shiftdb help
Enter fullscreen mode Exit fullscreen mode

1. Get all the keys

To get all the keys, type in the terminal:

$ shiftdb getall
Enter fullscreen mode Exit fullscreen mode

2. Get a key

To get a key and it's value, type in the terminal:

$ shiftdb get
Key: key
Enter fullscreen mode Exit fullscreen mode

3. Make a key

To make or set a key in the database, type in the termina;:

$ shiftdb set
Key: key
Value: value
Enter fullscreen mode Exit fullscreen mode

4. Delete a key

To delete a key from the database, type in the terminal:

$ shiftdb del
Key: key
Enter fullscreen mode Exit fullscreen mode

If all of those aren't working, try this:

$ node . your_command
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
rayhanadev profile image
Ray Arayilakath

Nice!

Collapse
 
zuhdihacker1 profile image
ZDev1

Thanks!