MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _get_ref

Function _get_ref

bson/__init__.py:471–477  ·  view source on GitHub ↗

Decode (deprecated) BSON DBPointer to bson.dbref.DBRef.

(
    data: Any, view: Any, position: int, obj_end: int, opts: CodecOptions[Any], element_name: str
)

Source from the content-addressed store, hash-verified

469
470
471def _get_ref(
472 data: Any, view: Any, position: int, obj_end: int, opts: CodecOptions[Any], element_name: str
473) -> Tuple[DBRef, int]:
474 """Decode (deprecated) BSON DBPointer to bson.dbref.DBRef."""
475 collection, position = _get_string(data, view, position, obj_end, opts, element_name)
476 oid, position = _get_oid(data, view, position, obj_end, opts, element_name)
477 return DBRef(collection, oid), position
478
479
480def _get_timestamp(

Callers

nothing calls this directly

Calls 3

DBRefClass · 0.90
_get_stringFunction · 0.85
_get_oidFunction · 0.85

Tested by

no test coverage detected