hey um is there a way to run a function before tauri start?
i tried something like this but not working
pub static DB: Surreal<Db> = Surreal::init();
pub async fn init() -> Result<(), Box<dyn Error>> {
DB.connect::<RocksDb>("temp.db").await?;
DB.use_ns("test")
.use_db("test")
.await?;
Ok(())
}
fn main() {
init();
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![greet,alpha])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
