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

Method table_ref

src/entity/base_entity.rs:37–42  ·  view source on GitHub ↗

Get the [TableRef] from invoking the `self.schema_name()`

(&self)

Source from the content-addressed store, hash-verified

35
36 /// Get the [TableRef] from invoking the `self.schema_name()`
37 fn table_ref(&self) -> TableRef {
38 match self.schema_name() {
39 Some(schema) => (Alias::new(schema).into_iden(), self.into_iden()).into_table_ref(),
40 None => self.into_table_ref(),
41 }
42 }
43}
44
45/// An abstract base class for defining Entities.

Callers 15

prepare_fromMethod · 0.80
load_many_to_manyMethod · 0.80
oneMethod · 0.80
manyMethod · 0.80
newMethod · 0.80
oneMethod · 0.80
manyMethod · 0.80
create_table_from_entityFunction · 0.80
newMethod · 0.80
create_active_enum_tableFunction · 0.80

Implementers 15

lunch_set_expanded.rssrc/tests_cfg/lunch_set_expanded.rs
cake_filling.rssrc/tests_cfg/cake_filling.rs
cake_filling_price.rssrc/tests_cfg/cake_filling_price.rs
indexes.rssrc/tests_cfg/indexes.rs
cake_expanded.rssrc/tests_cfg/cake_expanded.rs
column_name_2src/entity/column.rs
enum_name_2src/entity/column.rs
column_name_enum_name_2src/entity/column.rs
select_as_1src/entity/column.rs
save_as_1src/entity/column.rs
select_as_and_value_1src/entity/column.rs
dyn_table_name_lazy_static.rstests/common/features/dyn_table_name_l

Calls 2

newFunction · 0.50
schema_nameMethod · 0.45

Tested by 1