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

Method def

src/tests_cfg/filling.rs:58–64  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

56 type EntityName = Entity;
57
58 fn def(&self) -> ColumnDef {
59 match self {
60 Self::Id => ColumnType::Integer.def(),
61 Self::Name => ColumnType::String(StringLen::None).def(),
62 Self::VendorId => ColumnType::Integer.def().nullable(),
63 }
64 }
65}
66
67impl RelationTrait for Relation {

Callers 8

toMethod · 0.45
viaMethod · 0.45
toMethod · 0.45
viaMethod · 0.45
toMethod · 0.45
toMethod · 0.45
toMethod · 0.45
viaMethod · 0.45

Calls 3

nullableMethod · 0.80
toMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected