()
| 31 | A: ActiveModelTrait, |
| 32 | { |
| 33 | pub(crate) fn new() -> Self { |
| 34 | Self { |
| 35 | query: InsertStatement::new() |
| 36 | .into_table(A::Entity::default().table_ref()) |
| 37 | .or_default_values() |
| 38 | .to_owned(), |
| 39 | columns: Vec::new(), |
| 40 | primary_key: None, |
| 41 | model: PhantomData, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | /// Insert one Model or ActiveModel |
| 46 | /// |