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

Function enum_name

src/entity/column.rs:353–359  ·  view source on GitHub ↗
(col_type: &ColumnType)

Source from the content-addressed store, hash-verified

351}
352
353fn enum_name(col_type: &ColumnType) -> Option<&DynIden> {
354 match col_type {
355 ColumnType::Enum { name, .. } => Some(name),
356 ColumnType::Array(col_type) => enum_name(col_type),
357 _ => None,
358 }
359}
360
361impl ColumnDef {
362 /// Marks the column as `UNIQUE`

Callers 1

get_enum_nameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected