Giter VIP home page Giter VIP logo

minidb's Introduction

MiniDB

MiniDB is a type of key-value like XML Document Database.

This is just a simple implementation, more-like a prototype and My first time doing it. So, The database design might not be as good and nor feature rich.

About the Project

This is my college Project Submission for the following course

  • Course Name: Object Oriented Programming using Java
  • Course Code: IS4C04
  • Course Instructor: Mr. Suhaas KP, Assistant Professor, Department of Information Science and Engineering, The National Institute Of Engineering, Mysuru 570008

Made with

Usage

Use the following commands to perform CRUD operations on this NoSQL Database.

  • list to list all the created databases.
  • new {name} For creating a new database. ({} denotes that name is a variable)
  • use {name} to select the database from the existing ones for CRUD operations.
  • drop {name} to delete a database.
  • schema {} for declaring schema of the database. (NOTE: schema must be declared first to add any data)
  • add {} for adding data to the database. the data is seperated with , and must follow the schema.
  • read to show the all data of the database.
  • delete {id} for deleting data which has specified id.

Example usage

After starting the CLI, you should see the following:

--------------- Welcome to MiniDB ---------------
--------- Made by Chanakya. MIT License ---------
Enter the Commands: (Use 'exit;' to exit the cli)

The following commands creates a database named animal. We declare a schema first since it's important to have a format of data to store in database. Then, we add data that must satisfy the schema format.

new animal
schema id,name,legs
add 1,cat,4
add 2,fish,0

Note: The first element is taken as the id, which is used as a pointer to data. So, it's a good practice to name it as id itself.

minidb's People

Contributors

u-c-s avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.