Struct Bson

Represents a BSON value.

Constructors

Name Description
this Creates a new BSON value using raw data.
this Initializes a new BSON value from the given D type.

Methods

Name Description
EmptyObject Returns a new, empty Bson value of type Object.
EmptyArray Returns a new, empty Bson value of type Object.
opAssign Assigns a D type to a BSON value.
type Returns the BSON type of this value.
isNull
data Returns the raw data representing this BSON value (not including the field name and type).
opCast Converts the BSON value to a D value.
get Converts the BSON value to a D value.
opt Returns the native type for this BSON if it matches the current runtime type.
length Returns the length of a BSON value of type String, Array, Object or BinData.
fromJson Converts a given JSON value to the corresponding BSON value.
toJson Converts a BSON value to a JSON value.
opIndex Allows accessing fields of a BSON object using [].
opIndexAssign Allows accessing fields of a BSON object using [].
opIndex Allows index based access of a BSON array value.
opApply Allows foreach iterating over BSON objects and arrays.
opDispatch Allows to access existing fields of a JSON object using dot syntax.
opEquals

Enums

Name Description
Type Represents the type of a BSON value

Authors

Sönke Ludwig

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.