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

Method def

sea-orm-codegen/tests/expanded/rust_keyword.rs:73–89  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

71 type EntityName = Entity;
72
73 fn def(&self) -> ColumnDef {
74 match self {
75 Self::Id => ColumnType::Integer.def(),
76 Self::Testing => ColumnType::TinyInteger.def(),
77 Self::Rust => ColumnType::TinyUnsigned.def(),
78 Self::Keywords => ColumnType::SmallInteger.def(),
79 Self::Type => ColumnType::SmallUnsigned.def(),
80 Self::Typeof => ColumnType::Integer.def(),
81 Self::Crate => ColumnType::Unsigned.def(),
82 Self::Self_ => ColumnType::BigInteger.def(),
83 Self::SelfId1 => ColumnType::BigUnsigned.def(),
84 Self::SelfId2 => ColumnType::Integer.def(),
85 Self::FruitId1 => ColumnType::Integer.def(),
86 Self::FruitId2 => ColumnType::Integer.def(),
87 Self::CakeId => ColumnType::Integer.def(),
88 }
89 }
90}
91
92impl RelationTrait for Relation {

Callers 1

toMethod · 0.45

Calls 2

toMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected