Mini Database Engine

A lightweight Python CLI database system that simulates basic database operations such as creating tables, inserting records, updating data, and deleting entries. The system stores table data using JSON files and allows users to interact with the database through simple commands in a command line interface.

What it can do

How it works

The Mini Database Engine follows a simple modular structure.

  1. Table Management Module Handles creating, listing, and deleting tables.
  2. Record Management Module Manages inserting, selecting, updating, and deleting records.
  3. Storage Module Stores table data inside JSON files inside the database folder.
  4. Command Interface Allows users to interact with the database using commands such as create_table, insert, select, update, and delete.

Example Terminal Output


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