JustCasuallyJames / SQL-Database

Simple database using SQL commands via the command line. This is for CS8 Barkeshlis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQL-Database

Simple database using SQL commands via the command line. It was all written from scratch using advanced C++ knowledge

Dependencies

There are no dependencies except for the standard vector library. All of the data structures used in this project are written from scratch so this project is able to be ran from any compiler.

Usage

Command
select <fields> from <table> where <conditions>
insert into <table> VALUES(val1, val2, ...)
create table <table>(col1, col2, ...)
make table <table>(col1,col2, ...)
drop <table>

In addition to the required commands, there are additional useful features.

Command Description
tables Displays a list of the available tables
batch <file> Opens and executes a file containing SQL commands
exit Closes the session

Sample run

112393415-425a0900-8cb8-11eb-8fc6-c1172663b47e Screenshot 2021-03-24 160054

About

Simple database using SQL commands via the command line. This is for CS8 Barkeshlis


Languages

Language:C++ 99.4%Language:C 0.6%