Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrpandya/dbms_from_scratch
A CLI based DBMS made using C++. It supports basic SQL Queries.
https://github.com/mrpandya/dbms_from_scratch
algorithms cpp data-structures database database-management sql
Last synced: 2 months ago
JSON representation
A CLI based DBMS made using C++. It supports basic SQL Queries.
- Host: GitHub
- URL: https://github.com/mrpandya/dbms_from_scratch
- Owner: mrpandya
- Created: 2021-06-05T15:18:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-05T05:53:05.000Z (12 months ago)
- Last Synced: 2024-01-05T06:37:32.298Z (12 months ago)
- Topics: algorithms, cpp, data-structures, database, database-management, sql
- Language: C++
- Homepage:
- Size: 1.38 MB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DBMS made from SCRATCH
[![](https://img.shields.io/badge/Made_with-C++-blue?style=for-the-badge&logo=c++)](https://cplusplus.com/ "C++")### This is a **SQL based Database Management System**. This DBMS works IMPORT, SELECT, INSERT, DELETE queries.
> This DBMS has a fixed schema and the SQL queries can be run on the Command Line Interface.
### Screenshots:
![ss1](screenshots/ss1.png)
![ss2](screenshots/ss2.png)
![ss3](screenshots/ss3.png)
![ss4](screenshots/ss4.png)
![ss5](screenshots/ss5.png)## How to use:
- Clone the repo :
```
$ git clone https://github.com/mrpandya/DBMS_from_scratch.git
```
- Go to the repo :
```
$ cd DBMS_from_scratch
```
- To compile :> GNU G++ compiler for C++ required
```
$ g++ -o driver driver.cpp
```
- To execute :
> Compiled version for linux version has already been added. You can directly run the executable file without compiling
```
$ ./driver
```### Schema
|Column Name| Data Type|
|-----------|----------|
| id | INT |
| username | STRING |
| email | STRING |
| password | STRING |
### Syntax
#### IMPORT Query
Import .csv;
#### SELECT Query
Select * from [Where] [column_name] [operation] [value];
- OPTION
WHERE => It can be used only on any one column.
OPERATION => Valid operations are {=, !=, >, <, <=, >=}#### INSERT Query
Insert into values (data...);
- DESCRIPTION
DATA => It is comma separated string of the data to be inserted. DO NOT leave a space in the paranthesis.
#### DELETE Query
Delete from [Where] [column_name] [operation] [value];
- OPTION
WHERE => It can be used only on any one column.
OPERATION => Valid operations are {=, !=, >, <, <=, >=}
#### The following code has been tested and executed on Linux.
#### This project still has scope of development, so you can also contribute to this Project as follows:
* [Fork](https://github.com/mrpandya/DBMS_from_scratch) this Repository.
* Clone your Fork on a different branch:
* `git clone -b https://github.com/mrpandya/DBMS_from_scratch.git`
* After adding any feature:
* Goto your fork and create a pull request.
* Your modifications will be tested and the changes will be merged.---
Developed with :heart: by Manan Pandya .