#sql #json #id #macro #table #object #html

rbatis_sql

Rust Json Object access macro

37 stable releases

new 3.0.25 Jun 26, 2022
3.0.23 Apr 22, 2022
3.0.17 Mar 29, 2022
3.0.13 Dec 9, 2021
1.0.0 Jun 13, 2021
Download history 345/week @ 2022-03-12 570/week @ 2022-03-19 295/week @ 2022-03-26 259/week @ 2022-04-02 248/week @ 2022-04-09 296/week @ 2022-04-16 474/week @ 2022-04-23 396/week @ 2022-04-30 529/week @ 2022-05-07 793/week @ 2022-05-14 296/week @ 2022-05-21 520/week @ 2022-05-28 461/week @ 2022-06-04 363/week @ 2022-06-11 615/week @ 2022-06-18 338/week @ 2022-06-25

1,837 downloads per month
Used in 3 crates (via rbatis)

Apache-2.0

120KB
3.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

~7MB
~163K SLoC