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

Method def

examples/basic/src/example_cake_filling.rs:62–67  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

60 type EntityName = Entity;
61
62 fn def(&self) -> ColumnDef {
63 match self {
64 Self::CakeId => ColumnType::Integer.def(),
65 Self::FillingId => ColumnType::Integer.def(),
66 }
67 }
68}
69
70impl RelationTrait for Relation {

Callers

nothing calls this directly

Calls 2

toMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected