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

Method def

sea-orm-codegen/tests/expanded/collection.rs:45–51  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
nullMethod · 0.45

Tested by

no test coverage detected