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

Function PyDictToVectors

src/python/python_api.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73inline void PyDictToVectors(const pybind11::dict& dict, std::vector<std::string>& fnames,
74 std::vector<FieldData>& fdata) {
75 fnames.clear();
76 fdata.clear();
77 for (auto it = dict.begin(); it != dict.end(); ++it) {
78 fnames.push_back(pybind11::str(it->first));
79 fdata.push_back(ObjectToFieldData(it->second.cast<pybind11::object>()));
80 }
81}
82
83inline pybind11::object FieldDataToPyObj(const FieldData& data) {
84 switch (data.type) {

Callers 1

register_python_apiFunction · 0.85

Calls 5

ObjectToFieldDataFunction · 0.85
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected