#236236th of 358 in Backends, databases and hosting

rbatis

Rust ORM and dynamic SQL compiler using compile-time code generation

Releases and problems feed (RSS)

Stars
2.5k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Rust
Stars, last 30 weeks+55
26 Apr 2026: 2,434 stars3 May 2026: 2,437 stars10 May 2026: 2,443 stars17 May 2026: 2,448 stars24 May 2026: 2,449 stars31 May 2026: 2,449 stars7 Jun 2026: 2,451 stars14 Jun 2026: 2,453 stars21 Jun 2026: 2,454 stars28 Jun 2026: 2,462 stars5 Jul 2026: 2,465 stars12 Jul 2026: 2,466 stars19 Jul 2026: 2,470 stars26 Jul 2026: 2,471 stars2 Aug 2026: 2,473 stars9 Aug 2026: 2,477 stars16 Aug 2026: 2,479 stars23 Aug 2026: 2,480 stars30 Aug 2026: 2,481 stars6 Sept 2026: 2,481 stars13 Sept 2026: 2,481 stars20 Sept 2026: 2,483 stars27 Sept 2026: 2,484 stars4 Oct 2026: 2,484 stars11 Oct 2026: 2,485 stars18 Oct 2026: 2,486 stars25 Oct 2026: 2,486 stars1 Nov 2026: 2,486 stars8 Nov 2026: 2,489 stars15 Nov 2026: 2,489 stars22 Nov 2026: 2,489 stars

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

  1. “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.”

  2. “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
Also in Backends, databases and hosting
RankProjectScore
#234kubeblocksKubernetes operator managing many database engines through one set of CRDs3.2k starsAGPL-3.065 out of 100
#235nestjsNestJS modules for RabbitMQ, Stripe, Hasura, Pub/Sub and webhooks2.8k starsMIT65 out of 100
#237couchdbDocument database with an HTTP API, Fauxton admin UI and clustering7k starsApache-2.064 out of 100
#238goravelLaravel-style web application framework for Go4.9k starsMIT64 out of 100
#239mallSpring Boot e-commerce backend with admin and storefront APIs Live demo ↗ (opens in a new tab)85.1k starsApache-2.063 out of 100