MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / create_pycbc_scan_iterator

Function create_pycbc_scan_iterator

src/result.cxx:421–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419};
420
421pycbc_scan_iterator*
422create_pycbc_scan_iterator(couchbase::core::scan_result result)
423{
424 PyObject* pyObj_iter = PyObject_CallObject((PyObject*)&pycbc_scan_iterator_type, nullptr);
425 if (!pyObj_iter) {
426 return nullptr;
427 }
428
429 pycbc_scan_iterator* iter = reinterpret_cast<pycbc_scan_iterator*>(pyObj_iter);
430 iter->scan_result = std::make_shared<couchbase::core::scan_result>(std::move(result));
431
432 return iter;
433}
434
435int
436add_result_objects(PyObject* module)

Callers 1

handle_range_scan_opMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected