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

Method def

sea-orm-codegen/tests/expanded_with_schema_name/child.rs:51–57  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

49impl ColumnTrait for Column {
50 type EntityName = Entity;
51 fn def(&self) -> ColumnDef {
52 match self {
53 Self::Id => ColumnType::Integer.def(),
54 Self::ParentId1 => ColumnType::Integer.def(),
55 Self::ParentId2 => ColumnType::Integer.def(),
56 }
57 }
58}
59
60impl RelationTrait for Relation {

Callers 1

toMethod · 0.45

Calls 2

toMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected