Lines Matching refs:entry
47 void DoCallBack(int id, const Entry& entry) in DoCallBack() argument
49 if (callback_(id, entry) != 0) { in DoCallBack()
69 int DocStore::Put(const Entry &entry, const char* coll) in Put() argument
78 rc = jbl_from_json(&jbl, entry.value.c_str()); in Put()
81 rc = ejdb_put_new(dbPtr->db_, coll, jbl, const_cast<int64_t*>(&entry.id)); in Put()
101 for (auto entry = entries.begin(); entry != entries.end(); entry++) { in PutBatch() local
102 Put(*entry); in PutBatch()
107 int DocStore::Merge(const Entry &entry, const char* coll) in Merge() argument
110 if (entry.id <= 0) { in Merge()
115 if (entry.value.empty()) { in Merge()
120 iwrc rc = ejdb_patch(dbPtr->db_, coll, entry.value.c_str(), entry.id); in Merge()
220 Entry entry; in GetEntriesWithQuery() local
221 entry.id = doc->id; in GetEntriesWithQuery()
222 entry.value = iwxstr_ptr(xstr); in GetEntriesWithQuery()
223 if (entry.value.empty()) { in GetEntriesWithQuery()
228 entries.emplace_back(entry); in GetEntriesWithQuery()
257 Entry entry; in DocumentsVisitor() local
258 entry.id = doc->id; in DocumentsVisitor()
260 entry.value = iwxstr_ptr(callBackInfoPtr->GetIWXSTR()); in DocumentsVisitor()
261 callBackInfoPtr->DoCallBack(ctx->cnt, entry); in DocumentsVisitor()