macro_rules! fx {
($name:expr, $($arg:expr),+ $(,)?) => { ... };
}Expand description
Macro for building SQL function calls with automatic .expr() on arguments.
Each argument has .expr() called via the Expressive trait, so you can
pass Identifier, Column, Fx, scalars, or any Expressive<T> directly.
§Examples
ⓘ
use vantage_sql::primitives::*;
// Single argument
fx!("count", sqlite_expr!("*"))
// Multiple arguments
fx!("coalesce", ident("name"), "unnamed")
// Nested function calls
fx!("round", fx!("avg", ident("price")), 2i64)