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

Method def

sea-orm-codegen/tests/expanded/cake_with_float.rs:48–54  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers 2

toMethod · 0.45
viaMethod · 0.45

Calls 1

nullMethod · 0.45

Tested by

no test coverage detected