Skip to main content

insert_without_hooks

Function insert_without_hooks 

Source
pub async fn insert_without_hooks<A>(
    active: A,
) -> Result<<A::Entity as EntityTrait>::Model>
Expand description

Insert without running hooks.

Named for what it costs you. Reach for it in seeders and fixtures where hooks would be wrong, never in application code.