ArrayElemTypeDef in sqlparser::ast - Rust

Enum ArrayElemTypeDef 

Source

pub enum ArrayElemTypeDef {
    None,
    AngleBracket(Box<DataType>),
    SquareBracket(Box<DataType>, Option<u64>),
    Parenthesis(Box<DataType>),
}
Expand description

Represents the data type of the elements in an array (if any) as well as the syntax used to declare the array.

For example: Bigquery/Hive use ARRAY<INT> whereas snowflake uses ARRAY.

§

Use ARRAY style without an explicit element type.

§

Angle-bracket style, e.g. ARRAY<INT>.

§

Square-bracket style, e.g. INT[] or INT[2].

§

Parenthesis style, e.g. Array(Int64).

§
§
§
§
§
§