Git Product home page Git Product logo

dbms-cp's Introduction

DataLite

Create Table & Insert into Command:

This is an image

Select Command:

This is an image

Update Command with Where Clause:

This is an image

Delete From Command with Where Clause:

This is an image

Help Command & Describe Command:

This is an image

Developed a CLI(Command Line) application named - DataLite.

DataLite is a lite clone of a real DataBase Management System.

Users get the result in the same way as they would if the query was executed in a real DataBase Management System.

Commands DataLite handles -

  • create table
  • drop table
  • insert into
  • select
  • update
  • delete from
  • describe table
  • help

How DataLite work?

  • User types the query in the command-line interface.
  • The query which is in string datatype is parsed and stored in a vector of strings called Tokens.
  • Then SQL keywords (like create, delete, describe, etc) are handled so that the applications works in case-insensitive mode.
  • Then, the Tokens are checked for any kind of errors and if any, corresponding error messages are printed.
  • If no errors, then corresponding function calls are made.
  • Thus query gets executed and success message is printed accordingly.

Features of DataLite :

  • A very lightweight program
  • Is case-insensitive but only for keywords in SQL
  • A Schema File which is a text file is maintained that contains information of attributes of all the tables.
  • Different text files are created for storing tuples of different tables.
  • Also works fine with where clause in select, update, delete from

Assumptions made :

  • Defining primary key while creating table is mandatory, else error will be raised.

Purpose of developing the software was to learn how complex is a database management system.

dbms-cp's People

Watchers

 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.