rbatis-core

Crates.iorbatis-core
lib.rsrbatis-core
version3.1.11
sourcesrc
created_at2020-06-25 05:58:01.340887
updated_at2022-07-07 15:00:03.687466
descriptionCore of rbatis, the rust SQL toolkit. Not intended to be used directly.
homepagehttps://rbatis.github.io/rbatis.io/#/en/
repositoryhttps://github.com/rbatis/rbatis
max_upload_size
id257776
size180,116
zxj (zhuxiujia)

documentation

https://rbatis.github.io/rbatis.io/#/en/

README

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(());
        }
    )
}

Commit count: 5858

cargo fmt