fn sql_of_chain(
root: &Expr,
calls: &[&ExprMethodCall],
) -> Option<(Kind, String)>Expand description
The SQL statement in an awaited chain, if any: a string literal argument of its root call
(sqlx::query("..")), its root macro (sqlx::query!("..")) or one of its methods
(client.execute("..", &[])). A statement psync cannot read in a call it knows is SQL
(sqlx::query(&sql), diesel::sql_query(s)) may be anything, so it writes.