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

Method def

tests/common/features/collection_expanded.rs:47–55  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

45impl ColumnTrait for Column {
46 type EntityName = Entity;
47 fn def(&self) -> ColumnDef {
48 match self {
49 Self::Id => ColumnType::Integer.def(),
50 Self::Integers => ColumnType::Array(RcOrArc::new(ColumnType::Integer)).def(),
51 Self::IntegersOpt => ColumnType::Array(RcOrArc::new(ColumnType::Integer))
52 .def()
53 .null(),
54 }
55 }
56}
57
58impl RelationTrait for Relation {

Callers 15

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

Calls 2

newFunction · 0.50
nullMethod · 0.45

Tested by 4

partial_model_join_threeFunction · 0.36