as - multiple declarations

Function as

Returns cell value as a Nullable type using the underlying type conversion after null check.

T as(T, R) (
  in Value v
);

Function as

Returns cell value as a native string based type from text or binary formatted field.

T as(T) (
  in Value v
) pure @trusted
if (is(T : const(char)[]) && !is(T == Nullable!R, R));

Throws

AssertError if the db value is NULL.

Function as

Returns value as D type value from binary formatted field.

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.