use crate::{error::ToqlError, query::field_path::FieldPath, sql_expr::SqlExpr};
pub trait TreeUpdate {
fn update<'a, I>(
&self,
descendents: I,
fields: &std::collections::HashSet<String>, roles: &std::collections::HashSet<String>,
exprs: &mut Vec<SqlExpr>,
) -> Result<(), ToqlError>
where
I: Iterator<Item = FieldPath<'a>> + Clone;
}