Struct rbatis_core::db::db_adapter::DBPool [−][src]
pub struct DBPool {
pub driver_type: DriverType,
pub mysql: Option<MySqlPool>,
pub postgres: Option<PgPool>,
pub sqlite: Option<SqlitePool>,
pub mssql: Option<MssqlPool>,
}
Fields
driver_type: DriverType
mysql: Option<MySqlPool>
postgres: Option<PgPool>
sqlite: Option<SqlitePool>
mssql: Option<MssqlPool>
Implementations
Retrieves a connection from the pool.
Waits for at most the configured connection timeout before returning an error.
Attempts to retrieve a connection from the pool if there is one available.
Returns None
immediately if there are no idle connections available in the pool.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for DBPool
impl !UnwindSafe for DBPool
Blanket Implementations
Mutably borrows from an owned value. Read more