Function with_database

Source
pub fn with_database<DB>(backend: DB) -> BoxedDatabaseEntryPoint<DB>
where DB: DatabaseBackend + Send + Sync + Debug + 'static,
Expand description

Create a new database entry point with the given backend

This function creates a new entry point for working with databases. Use the boxed_async! macro with setup and with_transaction to avoid lifetime issues.