Skip to content

A document based database, built on top of leveldb

Notifications You must be signed in to change notification settings

nasim-pro/simpledb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleDB

SimpleDB is a lightweight, document-based database built on top of leveldb. It provides efficient storage and retrieval of documents using a simple interface.

Features

  • Lightweight and fast
  • Document-based storage
  • Built on top of leveldb for high-performance read write.

Getting Started

Prerequisites

  • Ubuntu (or other Linux distributions)
  • Node.js (bundled with the SimpleDB package)
  • Systemd for service management

Installation

  1. Download and Install SimpleDB

    Download the .deb package for AMD64 Machine from the GitHub release page and install.

  2. Starting the service

    sudo systemctl start simpledb
  3. Enable to start on boot

    sudo systemctl enable simpledb

Try it on

  1. Open terminal and type simplesh

    simplesh

    It will open the shell to connect to the database, there is no authentication implemented, so it is not recommended to use in production environmnet, just to test it out.

    Once connected to the shell you can perform crud operations.

    Create Collection

    collection.create({collectionName: "users"})

    List Collections

    collection.listCollection()

    Delete Collection

    collection.delete({collectionName: "users"})

    Create document

    users.createOne({name: "John Doe"})

    Read one document

    users.findOne({name: "John Doe"})

    Read all document(arg optional)

    users.find({name: "John Doe"})

    Update document

    users.updateOne({name: "John Doe"}, {name: "Doe John"})

    Delete document

    users.deleteOne({name: "Doe John"})

About

A document based database, built on top of leveldb

Resources

Stars

Watchers

Forks