Macro diesel::print_sql [] [src]

macro_rules! print_sql {
    ($query:expr) => { ... };
}

Takes takes a query QueryFragment expression as an argument and prints out the SQL with placeholders for the dynamic values.

Example

Printing SQL from a count statment:

print_sql!(users.count());