refactor(bonfire): remove quark dependency

This commit is contained in:
Paul Makles
2024-04-08 21:49:19 +01:00
parent 0fc59b8e2a
commit a1eeedabb9
15 changed files with 1105 additions and 28 deletions

View File

@@ -1,5 +1,5 @@
use once_cell::sync::OnceCell;
use revolt_quark::{Database, DatabaseInfo};
use revolt_database::{Database, DatabaseInfo};
static DBCONN: OnceCell<Database> = OnceCell::new();
@@ -10,7 +10,9 @@ pub async fn connect() {
.await
.expect("Failed to connect to the database.");
DBCONN.set(database).expect("Setting `Database`");
if DBCONN.set(database).is_err() {
panic!("couldn't set database")
}
}
/// Get a reference to the current database.