zino_orm

Trait PoolManager

Source
pub trait PoolManager {
    // Required methods
    fn with_config(config: &'static Table) -> Self;
    async fn check_availability(&self) -> bool;
    async fn close(&self);
}
Expand description

A manager of the connection pool.

Required Methods§

Source

fn with_config(config: &'static Table) -> Self

Connects lazily to the database according to the config.

Source

async fn check_availability(&self) -> bool

Checks the availability of the connection pool.

Source

async fn close(&self)

Shuts down the connection pool.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PoolManager for ConnectionPool<DatabasePool>

Available on crate feature orm-sqlx only.