Crates.io | rbdc-pool-deadpool |
lib.rs | rbdc-pool-deadpool |
version | 4.5.7 |
source | src |
created_at | 2023-11-10 13:38:14.011667 |
updated_at | 2023-12-25 15:01:10.236353 |
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 | 1031156 |
size | 7,905 |
init pool by DBPoolOptions and Pool
use rbatis::RBatis;
use rbdc_pool_deadpool::DeadPool;
use rbdc_sqlite::{SqliteConnectOptions, SqliteDriver};
let rb=RBatis::new();
let opts=SqliteConnectOptions::new();
let _ = rb.init_option::<SqliteDriver, SqliteConnectOptions, DeadPool>(SqliteDriver{},opts);