pub struct ODBCConnectionManager { /* private fields */ }

Implementations

Constructs a ODBCConnectionManager.

limit is the max size of how many connections we will allow to exist within the pool. All other connections will get dropped after use if the pool is full.

Examples
use axum_odbc::{OdbcManagerLayer, ODBCConnectionManager};

let odbc_manager = ODBCConnectionManager::new("DSN=PostgreSQL", 5);

Aquires an ODBCConnection.

Examples
use axum_odbc::{OdbcManagerLayer, ODBCConnectionManager};

let odbc_manager = odbc_manager.aquire().await.unwrap();

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

If the extractor fails it’ll use this “rejection” type. A rejection is a kind of error that can be converted into a response. Read more

Perform the extraction.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.