forked from jmug/stoatchat
no
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use mongodb::Client;
|
||||
use mongodb::{ Client, Database };
|
||||
use std::env;
|
||||
|
||||
use once_cell::sync::OnceCell;
|
||||
@@ -15,3 +15,7 @@ pub fn connect() {
|
||||
pub fn get_connection() -> &'static Client {
|
||||
DBCONN.get().unwrap()
|
||||
}
|
||||
|
||||
pub fn get_db() -> Database {
|
||||
get_connection().database("revolt")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user