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

Method def

sea-orm-codegen/tests/expanded/child.rs:47–53  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers 1

toMethod · 0.45

Calls 2

toMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected