raw_bson
– Tools for representing raw BSON documents.¶
Tools for representing raw BSON documents.
-
class
bson.raw_bson.
RawBSONDocument
(bson_bytes, codec_options=None)¶ Create a new
RawBSONDocument
.Parameters: - bson_bytes: the BSON bytes that compose this document
- codec_options (optional): An instance of
CodecOptions
.
Changed in version 3.5: If a
CodecOptions
is passed in, its document_class must beRawBSONDocument
.-
items
()¶ Lazily decode and iterate elements in this document.
-
raw
¶ The raw BSON bytes composing this document.