Enum rustorm::pool::ManagedPool [] [src]

pub enum ManagedPool {
    Postgres(Pool<PostgresConnectionManager>),
    Oracle,
    Mysql(Option<MyPool>),
}

Postgres, Sqlite uses r2d2 connection manager, Mysql has its own connection pooling

Variants

Postgres
Oracle
Mysql

Methods

impl ManagedPool

fn init(url: &str, pool_size: usize) -> Result<Self, DbError>

initialize the pool

fn connect(&self) -> Result<Platform, DbError>

a conection is created here