use mid_chat::event::ChatEvent; pub mod db; pub mod prelude; pub mod service; pub type ChatEventSender = tokio::sync::broadcast::Sender; pub type ChatEventReceiver = tokio::sync::broadcast::Receiver; pub async fn open_core_db() -> sqlx::Result { let db = db::open("main").await?; sqlx::migrate!().run(&db).await?; Ok(db) }