rbatis-core 2.0.0

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

rbatis-core driver

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.execute("SELECT count(1) FROM biz_activity;").await?.rows_affected;
            println!("count: {}",count);
            return Ok(());
        }
    )
}