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

Function _gen_index_name

pymongo/helpers_shared.py:140–142  ·  view source on GitHub ↗

Generate an index name from the set of fields it is over.

(keys: _IndexList)

Source from the content-addressed store, hash-verified

138
139
140def _gen_index_name(keys: _IndexList) -> str:
141 """Generate an index name from the set of fields it is over."""
142 return "_".join(["{}_{}".format(*item) for item in keys])
143
144
145def _index_list(

Callers 1

__init__Method · 0.90

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected