← All projects
032024

SQL Query Engine

A SQL parser and storage engine written in C++.

DemoSource

The SQL parser running in a browser terminal, creating a database
The C++ engine compiled to WebAssembly - it runs in your browser.
Overview

A database engine built from first principles in C++: a hand-written SQL parser, file-backed storage, and full CRUD query processing - no libraries doing the interesting parts.

Because I spend the other half of my time attacking databases, the parser was designed defensively from day one: input validation and query handling follow OWASP Top 10 guidance, making injection structurally impossible rather than filtered after the fact.

Highlights
  • 01Hand-written SQL parser processing 2,000+ commands per minute
  • 02File-backed storage engine with efficient CRUD operations
  • 0340% reduction in database interaction latency
  • 04Injection-safe by design, following OWASP Top 10
Stack
  • C++
  • MySQL
  • File Handling
Discussion
  • Loading…