Connecting to MySql Database with Shuttle
# help
n
Hello I am new to rust and here, Please help. here is my code, how can I use Shuttle? Thank you #[rocket::main] async fn main() -> Result { let pool = MySqlPoolOptions::new() .max_connections(7) .connect("mysql://my-datase -credentials") .await?; let _ = rocket::build() .mount("/api/v1", routes![hello_world]) .manage(pool) .launch() .await.expect("Failed to start server or failed to connect to database"); Ok(()) }