Documentation ¶
Overview ¶
Package oldbson contains old implementation of BSON that is used for cross-testing only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CString ¶
type CString string
CString represents BSON zero-terminated UTF-8 string type.
It is not a "real" BSON data type but used by some of them and also by the wire protocol.
func (CString) MarshalBinary ¶
MarshalBinary implements bsontype interface.
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
Document represents BSON Document type.
func ConvertDocument ¶
ConvertDocument converts types.Document to bson.Document and validates it. It references the same data without copying it.
Remove it. TODO https://github.com/FerretDB/FerretDB/issues/260
func (*Document) Keys ¶
Keys returns a copy of document's keys.
If there are duplicate keys in the document, the result will have duplicate keys too.
If document or document's fields are not set (nil), it returns nil.
func (Document) MarshalBinary ¶
MarshalBinary implements bsontype interface.