Open Source · Self-Hosted · Zero Dependencies

The Database Built
By Developers,
For Developers.

Pure C++17. Zero external dependencies. 0.02ms indexed reads.
Runs on a €5 VPS. Your data never leaves your server.

Start for Free → Live Demo →
0
Tests Passing
0
Dependencies
0k
INSERTs / sec
0.02ms
Indexed Read
C++17
Pure Native
milansql — live session
Trusted by developers building production systems
GitHub Stars
Uptime
1626 Tests Passing
Features

Everything you need.
Nothing you don't.

Blazing Fast

86k INSERTs/sec. 0.02ms indexed reads. 17,800 RPS under load. Pure C++17, no overhead, no garbage collector, no VM.

86,220 INSERTs/sec · 0.02ms reads
🔒

Fortress Security

5-layer defense architecture. 34+ SQL-injection patterns blocked. 25+ honeypots that feed attackers fake data.

55 security bugs found & fixed
🧠

AI-Native

pgvector built-in. Semantic search with cosine similarity out of the box. JSONB support. Ready for LLM & RAG pipelines.

VECTOR type · <-> distance operator
🌐

Multi-Protocol

REST, MySQL Wire, PostgreSQL Wire, WebSocket, GraphQL. Connect with the tools you already use — no driver changes needed.

5 protocols · 1 binary
🛡

Row-Level Security

Full WHERE-clause policy parser. WITH CHECK enforcement. MVCC-correct visibility. Zero cross-user leakage — by design.

HMAC-SHA256 table isolation
🔍

Full SQL Standard

JOINs, CTEs, Window Functions, Subqueries, Stored Procedures, Triggers, Views, Materialized Views, Transactions with WAL.

Cost-based optimizer · ANALYZE · EXPLAIN
Performance

Numbers don't lie.

0
INSERTs / sec
0.02ms
Indexed Read
0
Requests / sec
0
Tests Passing
M
MilanSQL
-- Postgres-compatible syntax
WITH top_cities AS (
  SELECT city, COUNT(*) AS n
  FROM users GROUP BY city
)
SELECT city, n,
  RANK() OVER (ORDER BY n DESC)
FROM top_cities LIMIT 5;

-- 0.4ms · zero config changes
🐘 PostgreSQL
-- Same query. Same syntax.
WITH top_cities AS (
  SELECT city, COUNT(*) AS n
  FROM users GROUP BY city
)
SELECT city, n,
  RANK() OVER (ORDER BY n DESC)
FROM top_cities LIMIT 5;

-- your existing queries just work
Playground

Try it. Right now.

Running on MilanSQL v10.7.0 · Frankfurt, Germany
Open Source

Built in public.
Every line auditable.

View Source on GitHub

v1.0
The Core
Storage engine, SQL parser, B-tree indexes — from scratch in C++17.
v8.2
Production Ready
Multi-user auth, JWT, Row-Level Security, rate limiting, WAL transactions.
v9.9
Full Platform
MySQL + Postgres wire protocols, GraphQL, WebSocket, monitoring dashboard.
v10.3
Cost-Based Optimizer
Real column statistics, histogram selectivity, connection pooling, MVCC vacuum, streaming replication.
v10.6
Row & Column Security
CURRENT_APP_USER_ID() RLS, auto-RLS for tenant tables, column-level security, query audit log.
v10.7
AI & Audit
Natural Language SQL (Groq/OpenAI), enhanced audit log with GDPR compliance, configurable levels, column-level security.
1 developer. 0 VC money. 100% C++.
Quickstart

Connect in seconds

REST API
# Login
curl -X POST https://milansql.de/auth/login \
  -d '{"username":"you","password":"pw"}'

# Query
curl -X POST https://milansql.de/query \
  -H "Authorization: Bearer TOKEN" \
  -d '{"sql":"SELECT * FROM products"}'
MySQL Client
-- Any MySQL-compatible client
mysql -h milansql.de -P 4407 -u alice -p

CREATE TABLE products (
  id    INT PRIMARY KEY AUTO_INCREMENT,
  name  TEXT,
  price INT
);
Pricing

Simple, transparent pricing

Start for free. Upgrade when you grow.

Free
€0
forever
  • 1 Database
  • 100MB Storage
  • REST + MySQL API
  • Row-Level Security
  • Community Support
Get Started