Design and Implement an In-Memory Relational Database Engine
Model and implement a command-driven in-memory relational database with typed tables, inserts, equality queries, and bounded SQL-like parsing.
A reported one-hour LLD interview asked for working code for a simplified in-memory MySQL-like system, including database and table creation, row insertion, querying, command parsing, relational behavior, and OOP/SOLID design.
For this exercise, assume a single-process engine supports CREATE DATABASE, CREATE TABLE, INSERT, and SELECT with equality predicates joined by AND. Tables have immutable schemas with INT and TEXT columns; every inserted row must provide one non-null value per column.
Commands may arrive concurrently and each command must appear atomic. Joins, UPDATE, DELETE, transactions spanning commands, persistence, networking, authorization, and full MySQL syntax are outside scope. Produce an object-oriented design and bounded working implementation for the executable core.