Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d65f8e7
Civilize main()
aritra1911 Oct 25, 2020
e09678c
Merge branch 'master' of https://github.com/CodeOn-ArK/Semi_SQL
aritra1911 Oct 25, 2020
b09118a
Add pseudocodes for commands in parse()
aritra1911 Oct 26, 2020
db0404a
Implement createdb()
aritra1911 Oct 26, 2020
37f705e
Implement opendb()
aritra1911 Oct 26, 2020
bd0abbe
Refactor create_table()
aritra1911 Oct 27, 2020
c7a86ff
Update documentation
aritra1911 Oct 27, 2020
5bc5dee
Refactor show_tables()
aritra1911 Oct 28, 2020
02432fc
Add extension to db files
aritra1911 Oct 28, 2020
e31fa55
Implement get_tables() function
aritra1911 Oct 30, 2020
62a6b79
Typedef std::vector<std::string> to tables_vector
aritra1911 Oct 30, 2020
6a9bb02
Implement Ctrl-D (EOF) to exit
aritra1911 Oct 30, 2020
d05b67c
Implement select_table()
aritra1911 Oct 30, 2020
a959d76
Fix a few datatypes
aritra1911 Oct 31, 2020
bd820d1
Refactor display_table()
aritra1911 Oct 31, 2020
bb08df2
Improve tokenize()
aritra1911 Nov 1, 2020
2b9dd29
Add a print_row() for display_table()
aritra1911 Nov 1, 2020
045eca5
Refactor select_field()
aritra1911 Nov 1, 2020
9d4ec44
Remove original author's code
aritra1911 Nov 1, 2020
d995b7d
Add Makefile
aritra1911 Nov 1, 2020
f42ad43
Add rule for `clean` in Makefile
aritra1911 Nov 1, 2020
84dd3a0
Add functions for database and table select checks
aritra1911 Nov 2, 2020
f759ada
Change get_prompt() to print_prompt()
aritra1911 Nov 2, 2020
669c0ad
Create a function for navigation to table for data in file
aritra1911 Nov 2, 2020
0cf88df
Update README
aritra1911 Nov 2, 2020
4314cb4
Remove Plan comment from code
aritra1911 Nov 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.out
*.o
*.db
SemiSQL
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CXXFLAGS=-Wall -Wextra -pedantic -std=c++11

all: SemiSQL.o
$(CXX) SemiSQL.o -o SemiSQL

SemiSQL.o: SemiSQL.cpp
$(CXX) $(CXXFLAGS) -c SemiSQL.cpp

clean:
$(RM) SemiSQL *.o
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
# Semi_SQL
This code mimics SQL in a very basic way using c++
# SemiSQL
This code basically mimics a SQL DBMS using C++ in a CLI approach.

As of now understand the working of the code by yourself
detailed working will be published later with better updates.

This project is in active development and many of the features aren't implemented. Use at your own risk.

## Plan
### Operations
- [x] Create Database
- [x] Open Database
- [x] Create Table
- [x] Show Tables
- [x] Select Table
- [x] Display Table
- [x] Select specific Field of Table
- [ ] Drop Table
- [ ] Drop Column
### Functions
- [ ] ADD()
- [ ] AVERAGE()

## Dependencies
None, use any C++ 11 compatible compiler.

## Building
```sh
$ make
```

Developed and tested under Linux environment.
Loading