Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 684 Bytes

README.md

File metadata and controls

29 lines (26 loc) · 684 Bytes

Mini-SQL-Engine

Basic sql engine which supports simple queries of the type:

SELECT <attributes> FROM <tables> WHERE <condition>;

How to run

  • Run all the commands in one terminal tab
  • Install python3 and python3-venv
sudo apt install python3 python3-venv
  • Create a virtual environment, activate the environment and install dependencies
python3 -m venv env
source env/bin/activate
pip install --upgrade pip && pip install -r requirements.txt
  • To run query, use the following command
python3 20171171.py "<query_string>"
  • After finishing running queries, deactivate environment
deactivate
rm -r env/