Skip to main content

parse_type_str

Function parse_type_str 

Source
pub fn parse_type_str(s: &str) -> Result<RivetType>
Expand description

Parse a user-supplied column type string into a RivetType.

Case-insensitive. Whitespace around delimiters is trimmed. Returns an error with an actionable message if the string is not a recognised type — the error is surfaced before the export starts so the user can fix their rivet.yaml.