Skip to content

A SQL engine capable of handling basic SQL queries.

Notifications You must be signed in to change notification settings

mutius-me/sql_engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL Engine

This is a Python implementation of a simple SQL engine that supports SQL querying on a flat JSON array. The engine supports binary conditions =, !=, <, >, AND, OR, parentheses, and literals. It assumes the JSON array contains JSON objects with identical keys, and assumes well-formatted inputted queries.

To run as a binary:

  • Navigate to sql_engine/dist/.
  • Run ./main <file_path_here.json>.
  • Pass in SQL queries as standard input.

To run as a Python script:

  • Install uv using pip install uv.
  • Run uv sync.
  • Run p main.py <file_path_here.json>.
  • Pass in SQL queries as standard input.

About

A SQL engine capable of handling basic SQL queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published