Mini Database Engine

A lightweight Python-based database system that simulates core database operations such as table creation, record management, and data persistence using JSON storage. Designed to demonstrate how database engines manage structured data at a fundamental level.

Table Management Record Operations JSON Storage CLI Commands

Core Features

Table Management


Record Operations


Data Persistence


Command Interface

System Architecture

The engine follows a modular structure where each component handles a specific responsibility, ensuring clarity and maintainability.


Table Manager     → handles table creation & deletion
Record Manager    → manages CRUD operations
Storage Engine    → persists data in JSON files
Command Parser    → interprets user CLI commands

System Rules & Constraints

Example Terminal Output

Sample interaction with the database engine:


DB> create_table students
Enter columns: name,age,city

Table 'students' created successfully.

DB> insert students
Enter name: alex
Enter age: 21
Enter city: Houston

Record inserted successfully.

DB> select students

ID | NAME | AGE | CITY
1  | alex | 21  | Houston

Technologies Used

Why This Project?

This project demonstrates the core principles behind database systems, including structured data storage, CRUD operations, and command parsing.