sqlx-oldapi 0.6.53

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, MSSQL, and ODBC.
Documentation
1
2
3
4
5
6
7
8
9
fn main() {
    let _ = sqlx_oldapi::query!("select '127.0.0.1'::inet");

    let _ = sqlx_oldapi::query!("select '2001:4f8:3:ba::/64'::cidr");

    let _ = sqlx_oldapi::query!("select $1::inet", ());

    let _ = sqlx_oldapi::query!("select $1::cidr", ());
}