sqlx 0.8.6

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
Documentation
1
2
3
4
5
6
7
fn main() {
    let _ = sqlx::query!("select CONVERT(now(), DATE) date");

    let _ = sqlx::query!("select CONVERT(now(), TIME) time");

    let _ = sqlx::query!("select CONVERT(now(), DATETIME) datetime");
}