#orm #sql #compile-time #rbatis #toolkit #dynamic

rbatis-core

Core of rbatis, the rust SQL toolkit. Not intended to be used directly.

177 stable releases

3.1.11 Jul 7, 2022
3.1.9 May 18, 2022
3.1.6 Mar 25, 2022
3.0.18 Dec 9, 2021
0.0.3 Jun 25, 2020

#2295 in Database interfaces

Download history 15/week @ 2024-01-01 119/week @ 2024-01-08 67/week @ 2024-01-15 42/week @ 2024-01-22 28/week @ 2024-01-29 39/week @ 2024-02-05 47/week @ 2024-02-12 90/week @ 2024-02-19 207/week @ 2024-02-26 93/week @ 2024-03-04 116/week @ 2024-03-11 91/week @ 2024-03-18 98/week @ 2024-03-25 221/week @ 2024-04-01 64/week @ 2024-04-08 100/week @ 2024-04-15

491 downloads per month

Apache-2.0

170KB
4.5K SLoC

rbatis-core driver,based on mongodb/bson

support bigdecimal,json decode,async_std,tokio


use rbatis_core::db::{DBPool};

fn main() -> Result<(), rbatis_core::Error>{
    async_std::task::block_on(
        async move {
            //Automatic judgment of database type
            let pool = DBPool::new("mysql://root:123456@localhost:3306/test").await?;
            let mut conn = pool.acquire().await?;
            let count: u64 = conn.exec("SELECT count(1) FROM biz_activity;").await?.rows_affected;
            println!("count: {}",count);
            return Ok(());
        }
    )
}


lib.rs:

Core of rbatis::core, the rust SQL toolkit. Not intended to be used directly.

Dependencies

~5–25MB
~412K SLoC