#sql #sql-database #compile-time #orm #sql-query #dynamic #async

rbatis_sql

The Rust SQL Toolkit and ORM Library. An async, pure Rust SQL crate featuring compile-time Dynamic SQL

44 stable releases (3 major)

4.0.2 Aug 9, 2022
3.0.26 Jul 15, 2022
3.0.17 Mar 29, 2022
3.0.13 Dec 9, 2021
1.0.0 Jun 13, 2021

#1605 in Database interfaces

Download history 95/week @ 2024-07-20 157/week @ 2024-07-27 87/week @ 2024-08-03 80/week @ 2024-08-10 63/week @ 2024-08-17 58/week @ 2024-08-24 61/week @ 2024-08-31 59/week @ 2024-09-07 63/week @ 2024-09-14 175/week @ 2024-09-21 103/week @ 2024-09-28 38/week @ 2024-10-05 52/week @ 2024-10-12 66/week @ 2024-10-19 61/week @ 2024-10-26 53/week @ 2024-11-02

239 downloads per month

Apache-2.0

175KB
5.5K SLoC

rbatis html query lang

py->sql: select * from biz_activity where delete_flag = 0 and name=$1 
py->args: ["asdf"]
sql: select * from table where id = 1 id != $1
        id in $2
        id in $3
        id in $4
        id not in $5a = $6name like $7
        or
        name not like $8
        create_time between $9 and $10
        group by$11$12$13order by$14$15
args: [1,[1,2,3],[1,2,3],[1,2,3],[1,2,3],1,"asdf","asdf","2020-23-23","2020-23-23",1,2,3,"id","name"]
use Time: 1.6488273s ,each:1648 ns/op
use QPS: 606485 QPS/s

Dependencies

~5–7MB
~128K SLoC