Skip to main content

enum_position

Function enum_position 

Source
pub fn enum_position(ty: &LogicalType, value: &Value) -> Result<Value>
Expand description

Where a value of an ENUM sits in its list, as the unsigned integer a run of the type holds, with a null staying null.

ยงErrors

If the type is not an ENUM or the value is not one of its strings.