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

Method def

sea-orm-codegen/tests/expanded_with_schema_name/collection.rs:49–55  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

newFunction · 0.50
nullMethod · 0.45

Tested by

no test coverage detected