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

Method def

issues/1599/entity/src/filling.rs:55–61  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers 8

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

Calls 1

nullableMethod · 0.80

Tested by

no test coverage detected