MCPcopy Create free account
hub / github.com/SeaQL/sea-orm / new

Method new

src/query/insert.rs:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 ///

Callers

nothing calls this directly

Calls 2

table_refMethod · 0.80
newFunction · 0.50

Tested by

no test coverage detected