pub fn fairing() -> impl crate::rocket::fairing::Fairing {
            <crate::ConnectionPool<Self, diesel::SqliteConnection>>::fairing(
                "'example' Database Pool",
                "example",
            )
        }
/// Returns a fairing that initializes the database connection pool
/// associated with `Self`.
///
/// The fairing _must_ be attached before `Self` can be used as a
/// request guard.
///
/// # Example
///
/// ```rust
/// # #[macro_use] extern crate rocket;
/// # #[macro_use] extern crate rocket_sync_db_pools;
/// #
/// # #[cfg(feature = "diesel_sqlite_pool")] {
/// use rocket_sync_db_pools::diesel;
///
/// #[database("my_db")]
/// struct MyConn(diesel::SqliteConnection);
///
/// #[launch]
/// fn rocket() -> _ {
///     rocket::build().attach(MyConn::fairing())
/// }
/// # }
/// ```
Returns a fairing that initializes the database connection pool
associated with `Self`.

The fairing _must_ be attached before `Self` can be used as a
request guard.
Returns a fairing that initializes the database connection pool associated with ` Self ` . The fairing _must_ be attached before ` Self ` can be used as a request guard .
pub fn fairing() -> impl crate::rocket::fairing::Fairing {
            <crate::ConnectionPool<Self, diesel::SqliteConnection>>::fairing(
                "'example' Database Pool",
                "example",
            )
        }
pub fn fairing ( ) -> impl crate :: rocket :: fairing :: Fairing { < crate :: ConnectionPool < Self , diesel :: SqliteConnection > > :: fairing ( " " , " " , ) }
Returns a fairing that initializes the database connection pool
associated with `Self`.
Returns a fairing that initializes the database connection pool associated with ` Self ` .
example
None
#[macro_use] extern crate rocket;
None
#[macro_use] extern crate rocket_sync_db_pools;
None
#[cfg(feature = "diesel_sqlite_pool")] {
None
[database("my_db")]
None
[launch]
fn rocket() -> _ {
rocket::build().attach(MyConn::fairing())
}
fn rocket () - > _ { rocket :: build () . attach ( MyConn :: fairing () ) }
}
None