MCPcopy Create free account
hub / github.com/TuGraph-family/tugraph-db / FieldDataMapToPyDict

Function FieldDataMapToPyDict

src/python/python_api.cpp:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128inline pybind11::dict FieldDataMapToPyDict(const std::map<std::string, FieldData>& data) {
129 pybind11::dict d;
130 for (auto& kv : data) {
131 d[kv.first.c_str()] = FieldDataToPyObj(kv.second);
132 }
133 return d;
134}
135
136void register_python_api(pybind11::module& m) {
137 //======================================

Callers 1

register_python_apiFunction · 0.85

Calls 1

FieldDataToPyObjFunction · 0.85

Tested by

no test coverage detected