r/SQL • u/celsowm • Apr 14 '26
SQL Server I built an open SQL Server "clone" in Rust (Iridium SQL
I’ve been working on Iridium SQL, an open database engine written in Rust.
The goal is to build a SQL Server-compatible engine and server that works well for application-facing use cases, while also supporting different runtime shapes. Right now the project includes:
- a T-SQL engine with a native TDS server
- persistent storage by default in native/server mode
- WASM support for embedding and browser/local use
- a TypeScript client and browser playground
One thing I’m trying to be careful about is compatibility claims: the target is SQL Server compatibility, but I’m not pretending it has full parity. I’m tracking behavior and compatibility explicitly instead of hand-waving it.
Repo: https://github.com/celsowm/iridium-sql
Crates: https://crates.io/crates/iridium_server
I’d really love feedback from Rust folks on the architecture, project direction, API/design choices, and anything that stands out as a good or bad idea.
7
u/Staalejonko Apr 14 '26
Does it have any advantages over SQL Server in performance? Curious about that. I can imagine it's pretty lightweight at the moment.
3
u/sirchandwich Apr 14 '26
What does “t-sql engine” and “sql server compatible” mean? You mean a database that uses t-sql syntax?
2
u/jshine13371 Apr 14 '26
How easy is it to setup an instance? I'd be happy to test and report back any fallout.
1
u/thesqlguy Apr 15 '26 edited Apr 15 '26
A lot of people are asking about performance, the optimizer, etc..
I would suspect project like this would be intended for small scale local testing + development, or running build processes like schema validation against scripts, not as a replacement for a production server. i.e., just testing that given a schema, some seed data, and scripts you get the expected results.
There so many more considerations like security, logging, page cache, plan caching, maintenance, transaction log, etc that I would expect are not in scope here which I would be very much required for any sort of production workload.
I wouldn't consider the lack of any of that a negative or drawback, since regardless this is a very impressive project if it is T-SQL compatible with an engine, parser, etc.
3
u/BrentOzar Apr 14 '26
!remindme 1 week
1
u/Ok_Carpet_9510 Apr 14 '26
Just wondering what problem is being solved. Is the a limitation with current open source databases?
1
u/Separate-Principle23 Apr 15 '26
Intriguing idea so I will be following along, happy to test if you have the need.
1
u/Traditional-Hall-591 Apr 21 '26
Agents.md lol
1
u/ComicOzzy sqlHippo Apr 15 '26
I wouldn't call it a clone. Say it is compatible. You don't want any lawyers to contact you.
1
u/LI_IT_Guy Apr 15 '26
Two questions: