#236236th of 358 in Backends, databases and hosting
rbatis
Rust ORM and dynamic SQL compiler using compile-time code generation
- Stars
- 2.5k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Rust
2,434 on 26 Apr 20262,489 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Rbatis is a Rust ORM that compiles dynamic SQL written in py_sql, MyBatis-style html_sql or raw SQL into native Rust through procedural macros at build time. It generates CRUD methods with a macro and runs on async Tokio drivers for MySQL, PostgreSQL, SQLite, MSSQL and others. It is not an AI project; the README links rbdc-mcp and rbatis-skill as separate AI add-ons.
Who it is for: Rust developers who want an async ORM with MyBatis-style dynamic SQL
Strengths
- Dynamic SQL is translated at compile time, so no runtime SQL interpretation
- Drivers for MySQL, PostgreSQL, SQLite, MSSQL, DuckDB, Turso, plus community Oracle and TDengine
- Three SQL styles: py_sql, MyBatis-like html_sql and raw SQL
- Choice of connection pools: FastPool (default), Deadpool, MobcPool
Weaknesses
- Oracle and TDengine drivers live in separate third-party repositories
- Rust only; py_sql and html_sql templates add macro syntax to learn
- Not an AI tool; relevant here only through the separate rbdc-mcp add-on
- Benchmarks are single-thread numbers from the author's own machines
What it needs
- no GPU
- Needs Rust toolchain, Tokio, A database such as MySQL, PostgreSQL, SQLite or MSSQL
What changed
- v4.9.10 ↗ (opens in a new tab)Breaking
“insert_batch(..., 0) inserts all rows in one statement. Use a positive batch_size for large inputs to stay within database parameter and packet limits.”
- v4.9.9 ↗ (opens in a new tab)Breaking
“insert_batch(..., 0) inserts all rows in one statement. Use a positive batch_size for large inputs to stay within database parameter and packet limits.”
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Also in Backends, databases and hosting
See all 358| Rank | Project | Score |
|---|---|---|
| #234 | kubeblocksKubernetes operator managing many database engines through one set of CRDs | 65 out of 100 |
| #235 | nestjsNestJS modules for RabbitMQ, Stripe, Hasura, Pub/Sub and webhooks | 65 out of 100 |
| #237 | couchdbDocument database with an HTTP API, Fauxton admin UI and clustering | 64 out of 100 |
| #238 | goravelLaravel-style web application framework for Go | 64 out of 100 |
| #239 | mallSpring Boot e-commerce backend with admin and storefront APIs | 63 out of 100 |