Skip to main content

parse_data_type

Function parse_data_type 

Source
pub fn parse_data_type(sql: &str, dialect: DialectType) -> Result<DataType>
Expand description

Parse a standalone SQL data type.

§Arguments

  • sql - The data type string to parse, e.g. DECIMAL(10, 2)
  • dialect - The dialect to use for parsing

§Returns

The parsed data type