Crates.io | rbdc-pool-mobc |
lib.rs | rbdc-pool-mobc |
version | 4.5.7 |
source | src |
created_at | 2023-11-10 12:23:34.191831 |
updated_at | 2023-12-25 15:01:10.473941 |
description | The Rust SQL Toolkit and ORM Library. An async, pure Rust SQL crate featuring compile-time Dynamic SQL |
homepage | https://rbatis.github.io/rbatis.io |
repository | https://github.com/rbatis/rbatis |
max_upload_size | |
id | 1031027 |
size | 8,231 |
init pool by DBPoolOptions and Pool
use rbatis::RBatis;
use rbdc_pool_mobc::MobcPool;
use rbdc_sqlite::{SqliteConnectOptions, SqliteDriver};
let rb=RBatis::new();
let opts=SqliteConnectOptions::new();
let _ = rb.init_option::<SqliteDriver, SqliteConnectOptions, MobcPool>(SqliteDriver{},opts);