revolt-database 0.13.7

Revolt Backend: Database Implementation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[cfg(feature = "mongodb")]
mod mongodb;
mod reference;

#[async_trait]
pub trait AbstractMigrations: Sync + Send {
    #[cfg(test)]
    /// Drop the database
    async fn drop_database(&self);

    /// Migrate the database
    async fn migrate_database(&self) -> Result<(), ()>;
}