MilanSQL is a custom relational SQL database engine created entirely in C++17, offering rich features such as a TCP server, REST API, and full-text search. With zero external dependencies and a comprehensive SQL interface, this project is ideal for developers looking to understand database internals and create tailored database solutions.
MilanSQL is a custom relational SQL database engine developed entirely in C++17, designed to provide a robust, high-performance database solution with extensive features and zero external dependencies. This project has evolved through 117 development phases, showcasing a complete implementation of SQL functionalities coupled with modern architectural design.
MilanSQL is accompanied by comprehensive documentation:
MilanSQL can be quickly launched from the command line:
# Start the interactive REPL
git clone https://github.com/haidar9819-lang/milansql.git
cd milansql
cmake -B build -G Ninja && ninja -C build
./build/milansql.exe --http --port 8080
This command initiates the database server facilitating interactive SQL queries.
MilanSQL provides client drivers for various programming languages, enhancing accessibility:
pip install milansqlnpm install milansqlcom.milansql:milansql-jdbc:5.0.0cargo add milansqldotnet add package MilanSQL.DataMilanSQL v5.8.0 has shown impressive performance metrics:
| Metric | Result |
|---|---|
| INSERT throughput | ~98,000 rows/sec |
| SELECT scan | ~1M rows/sec |
| Index lookup | O(log n) B-Tree |
Overall, MilanSQL represents a significant step in custom database solutions, combining a powerful feature set with a lightweight framework conducive to both development and production use.
No comments yet.
Sign in to be the first to comment.