15 lines
323 B
Rust
15 lines
323 B
Rust
use crate::config::ClientConfig;
|
|
use sea_orm::DatabaseConnection;
|
|
use tokio::sync::OnceCell;
|
|
|
|
|
|
mod database;
|
|
|
|
pub static GLOBAL: Global = Global{
|
|
config: OnceCell::const_new(),
|
|
database: OnceCell::const_new(),
|
|
};
|
|
pub struct Global {
|
|
config: OnceCell<ClientConfig>,
|
|
database: OnceCell<DatabaseConnection>,
|
|
}
|