Trait toql_core::tree::tree_identity::TreeIdentity
source · [−]pub trait TreeIdentity {
fn auto_id<'a, I>(descendents: I) -> Result<bool, ToqlError>
where
I: Iterator<Item = FieldPath<'a>>;
fn set_id<'a, 'b, I>(
&mut self,
descendents: I,
action: &'b IdentityAction
) -> Result<(), ToqlError>
where
I: Iterator<Item = FieldPath<'a>> + Clone;
}
Expand description
Deal with primary and foreign keys in nested structs.
Required Methods
Returns true, if struct located at descendents
has database generated keys.