Skip to main content

BoxDatabaseAdapter

Type Alias BoxDatabaseAdapter 

Source
pub type BoxDatabaseAdapter = Box<dyn DatabaseAdapter>;
Expand description

Type alias for boxed dynamic database adapters.

Used to store database adapters without generic type parameters in collections or struct fields. The adapter type is determined at runtime.

§Example

let adapter: BoxDatabaseAdapter = Box::new(postgres_adapter);

Aliased Type§

pub struct BoxDatabaseAdapter(/* private fields */);