项目作者: BlitW0

项目描述 :
Basic sql engine which supports simple queries of the type: SELECT FROM WHERE ;
高级语言: Python
项目地址: git://github.com/BlitW0/Mini-SQL-Engine.git
创建时间: 2019-09-08T08:44:55Z
项目社区:https://github.com/BlitW0/Mini-SQL-Engine

开源协议:

下载


Mini-SQL-Engine

Basic sql engine which supports simple queries of the type:

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

How to run

  • Run all the commands in one terminal tab
  • Install python3 and python3-venv
    1. sudo apt install python3 python3-venv
  • Create a virtual environment, activate the environment and install dependencies
    1. python3 -m venv env
    2. source env/bin/activate
    3. pip install --upgrade pip && pip install -r requirements.txt
  • To run query, use the following command

    1. python3 20171171.py "<query_string>"
  • After finishing running queries, deactivate environment

    1. deactivate
    2. rm -r env/