mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
20 lines
423 B
Rust
20 lines
423 B
Rust
use sqlx::mysql::MySqlConnection;
|
|
use sqlx::prelude::*;
|
|
|
|
// #[tokio::main]
|
|
// async fn main() -> anyhow::Result<()> {
|
|
// env_logger::try_init()?;
|
|
//
|
|
// let _conn = <MySqlConnection>::connect("mysql://root:password@localhost").await?;
|
|
//
|
|
// Ok(())
|
|
// }
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
env_logger::try_init()?;
|
|
|
|
let _conn = <MySqlConnection>::connect("mysql://root:password@localhost")?;
|
|
|
|
Ok(())
|
|
}
|