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

Method save_as

src/entity/column.rs:1204–1209  ·  view source on GitHub ↗
(&self, val: Expr)

Source from the content-addressed store, hash-verified

1202 }
1203
1204 fn save_as(&self, val: Expr) -> SimpleExpr {
1205 match self {
1206 Self::Two => val.cast_as("text"),
1207 _ => self.save_enum_as(val),
1208 }
1209 }
1210 }
1211
1212 #[derive(Copy, Clone, Debug, EnumIter, DerivePrimaryKey)]

Callers 4

prepare_valuesMethod · 0.45
setMethod · 0.45
addMethod · 0.45
add_manyMethod · 0.45

Calls 1

save_enum_asMethod · 0.80

Tested by

no test coverage detected