#sql #orm #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

#2503 in Database interfaces

Download history 109/week @ 2024-07-20 245/week @ 2024-07-27 95/week @ 2024-08-03 86/week @ 2024-08-10 66/week @ 2024-08-17 65/week @ 2024-08-24 74/week @ 2024-08-31 64/week @ 2024-09-07 68/week @ 2024-09-14 250/week @ 2024-09-21 118/week @ 2024-09-28 43/week @ 2024-10-05 56/week @ 2024-10-12 72/week @ 2024-10-19 67/week @ 2024-10-26 57/week @ 2024-11-02

259 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
~419K SLoC