#actix-web #mysql #orm #rocket #postgres #sql #sqlite #sqlx #tokio #async

rbatis-core

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

177 stable releases

Uses new Rust 2021

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

#864 in Database interfaces

Download history 361/week @ 2022-04-21 1558/week @ 2022-04-28 1453/week @ 2022-05-05 3122/week @ 2022-05-12 949/week @ 2022-05-19 1287/week @ 2022-05-26 2009/week @ 2022-06-02 377/week @ 2022-06-09 551/week @ 2022-06-16 503/week @ 2022-06-23 475/week @ 2022-06-30 649/week @ 2022-07-07 570/week @ 2022-07-14 918/week @ 2022-07-21 387/week @ 2022-07-28 679/week @ 2022-08-04

2,794 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

~4–18MB
~354K SLoC