pub async fn insert<A>(active: A) -> Result<<A::Entity as EntityTrait>::Model>where
A: ActiveModelTrait + ActiveModelBehavior + Send,
<A::Entity as EntityTrait>::Model: IntoActiveModel<A> + Hooks<Active = A>,Expand description
Insert an active model and return the stored row, running the model’s create hooks around the write.