Skip to content

prayaganeethu/geekDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geekDB

A key value store database in Javascript, in development stage.

Getting Started

Run the following command in the terminal to get started with it:

node repl.js

To exit, hit CTRL+C

Supports the following operations:-

Note: keys should be in double quotes, and should be valid JSON strings. Values should be in JSON format.

insert

Inserts values into the db

insert "name" "Neethu Mohandas"
insert "books" ["Kite Runner", "Gone with the wind", "Uncle Tom's cabin"]
insert "address" { "place": "Indiranagar, 19th main, 4th cross", "building":2698} insert "address.Pin" 560008

update

Updates values in the db

update "name" "Anitha Mohandas"
update "address.building" 2699

delete

Deletes values from the db

delete "name"
delete "address.place"

show

Shows a specific key's value

show "address.place"
show "books"

keyExists

Checks if a key exists in the db

keyExists "books"
keyExists "address.place"

listAll

Lists all data in db

listAll

commit

Saves all data to the file

commit

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A key value store database in Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published