Skip to main content

query_as_unchecked

Macro query_as_unchecked 

Source
macro_rules! query_as_unchecked {
    ($out_struct:path, $query:expr) => { ... };
    ($out_struct:path, $query:expr, $($args:tt)*) => { ... };
}
Available on crate feature macros only.
Expand description

Compile-time checked SQL query mapping to a struct (unchecked variant).

Like query_as! but does not verify column names or types against the database at compile time. Useful for CI/deploy environments that lack database connectivity.

Requires the macros feature.