ColumnData.as

Returns the data converted to T.

If the data is NULL, defaultValue is returned.

  1. auto as(T defaultValue)
  2. auto as(T defaultValue)
    struct ColumnData
    as
    (
    T
    )
    (
    T defaultValue = T.init
    )
    if (
    isArray!T &&
    !isSomeString!T
    )
  3. auto as(T defaultValue)

Throws

VariantException if the value cannot be converted to the desired type.

Meta