as

Returns value as D type value from binary formatted field.

  1. T as(Value v)
  2. T as(Value v)
  3. T as(Value v)
    @safe
    T
    as
    (
    T
    )
    (
    in Value v
    )
    if (
    !is(T : const(char)[]) &&
    !is(T == Bson)
    &&
    !is(T == Nullable!R,
    R
    )
    )

Throws

AssertError if the db value is NULL.

Meta