Module diesel_async::async_connection_wrapper
source · Available on crate feature
async-connection-wrapper
only.Expand description
This module contains an wrapper type
that provides a diesel::Connection
implementation for types that implement
crate::AsyncConnection
. Using this type
might be useful for the following usecases:
- Executing migrations on application startup
- Using a pure rust diesel connection implementation as replacement for the existing connection implementations provided by diesel
Traits
- This is a helper trait that allows to customize the async runtime used to execute futures as part of the
AsyncConnectionWrapper
type. By default a tokio runtime is used.
Type Aliases
- A helper type that wraps an
AsyncConnection
to provide a syncdiesel::Connection
implementation.