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

Method def

sea-orm-codegen/tests/expanded/vendor.rs:50–56  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

48impl ColumnTrait for Column {
49 type EntityName = Entity;
50 fn def(&self) -> ColumnDef {
51 match self {
52 Self::Id => ColumnType::Integer.def(),
53 Self::Name => ColumnType::String(StringLen::N(255u32)).def(),
54 Self::FruitId => ColumnType::Integer.def().null(),
55 }
56 }
57}
58
59impl RelationTrait for Relation {

Callers 1

toMethod · 0.45

Calls 3

nullMethod · 0.45
toMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected