Home
last modified time | relevance | path

Searched refs:document (Results 1 - 25 of 33) sorted by relevance

12

/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/test/unittest/oh_adapter/
H A Ddocumentdb_json_common_test.cpp47 std::string document = R""({"name":"Tmn", "age":18, "addr":{"city":"shanghai", "postal":200001}})""; in HWTEST_F() local
52 JsonObject src = JsonObject::Parse(document, errCode); in HWTEST_F()
71 std::string document = R""({"name":"Tmn", "case":2, "age":[1, 2, 3], in HWTEST_F() local
77 JsonObject src = JsonObject::Parse(document, errCode); in HWTEST_F()
95 std::string document = R""({"name":["Tmn", "BB", "Alice"], "age":[1, 2, 3], in HWTEST_F() local
101 JsonObject src = JsonObject::Parse(document, errCode); in HWTEST_F()
119 std::string document = R""({"name":["Tmn","BB","Alice"]})""; in HWTEST_F() local
123 JsonObject src = JsonObject::Parse(document, errCode); in HWTEST_F()
133 std::string document = R""({"name":["Tmn", "BB", "Alice"]})""; in HWTEST_F() local
137 JsonObject src = JsonObject::Parse(document, errCod in HWTEST_F()
152 std::string document = R""({"name":{"first":["XX", "CC"], "last":"moray"}})""; HWTEST_F() local
171 std::string document = R""({"name":{"first":"XX", "last":"moray"}})""; HWTEST_F() local
190 std::string document = R""({"name":{"first":["XXX", "BBB", "CCC"], "last":"moray"}})""; HWTEST_F() local
209 std::string document = R""({"name":{"first":["XXX","BBB","CCC"],"last":"moray"}})""; HWTEST_F() local
228 std::string document = R""({"name":{"first":["XXX","BBB","CCC"],"last":"moray"}})""; HWTEST_F() local
243 std::string document = R""({"name":["Tmn","BB","Alice"]})""; HWTEST_F() local
257 std::string document = R""({"name":["Tmn","BB","Alice"]})""; HWTEST_F() local
271 std::string document = R""({"name":{"first":"Xue", "second":"Lang"}})""; HWTEST_F() local
285 std::string document = R""({"name":{"first":"Xue","second":"Lang"}})""; HWTEST_F() local
303 std::string document = R""({"name":{"first": {"job" : "it"}}, "t1" : {"second":"Lang"}})""; HWTEST_F() local
322 std::string document = R""({"item": [{"gender":"girl"}, "GG"], "instock": [{"warehouse":"A", "qty":5}, HWTEST_F() local
334 std::string document = R""({"item": [{"gender":"girl"}, "GG"], "instock": [{"warehouse":"A", "qty":5}, HWTEST_F() local
346 std::string document = R""({"item": [{"gender":"girl"}, "GG"], "instock": [{"warehouse":"A", "qty":5}, HWTEST_F() local
358 std::string document = R""({"item": ["GG", "AA"], "instock": [{"warehouse":"A", "qty":5}, HWTEST_F() local
370 std::string document = R""({"item": ["GG", {"gender":"girl"}], "instock": [{"warehouse":"A", "qty":5}, HWTEST_F() local
382 std::string document = R""({"item": ["GG", {"gender":"girl"}], "instock": [{"warehouse":"A", "qty":5}, HWTEST_F() local
394 std::string document = R""({"item": ["GG", {"gender":"girl", "hobby" : "IT"}], "instock": HWTEST_F() local
406 std::string document = R""({"item": ["GG", {"gender":"girl", "hobby" : "IT"}], "instock": HWTEST_F() local
418 std::string document = R""({"item": ["GG", {"gender":"girl", "hobby" : "IT"}], "instock": [{"warehouse":"A"}, HWTEST_F() local
430 std::string document = HWTEST_F() local
442 std::string document = HWTEST_F() local
454 std::string document = HWTEST_F() local
466 std::string document = HWTEST_F() local
478 std::string document = R""({"item" : "journal", "qty" : 25, "tags" : ["blank", "red"], "dim_cm" : [14, 21]})""; HWTEST_F() local
489 std::string document = R""({"item" : "journal", "qty" : 25, "tags" : {"value" : null}, "dim_cm" : [14, 21]})""; HWTEST_F() local
500 std::string document = R""({"item" : "journal", "qty" : 25, "dim_cm" : [14, 21]})""; HWTEST_F() local
511 std::string document = "{\\"_id\\" : \\"2\\", \\"name\\":\\"doc2\\",\\"item\\": 1, \\"personInfo\\":\\ HWTEST_F() local
523 const char *document = "{\\"_id\\" : \\"1\\", \\"name\\":\\"doc1\\",\\"item\\":\\"journal\\",\\"personInfo\\":\\ HWTEST_F() local
535 const char *document = "{\\"_id\\" : \\"3\\", \\"name\\":\\"doc3\\",\\"item\\":\\"notebook\\",\\"personInfo\\":\\ HWTEST_F() local
547 const char *document = "{\\"_id\\" : \\"15\\", \\"name\\":\\"doc15\\",\\"personInfo\\":[{\\"school\\":\\"C\\", \\"age\\" : 5}]}"; HWTEST_F() local
558 string document = R"({"_id" : "001", "key1" : {"key2" : {"key3" : {"key4" : 123, "k42" : "v42"}, "k32" : "v32"}, HWTEST_F() local
580 string document = R"({"_id" : "001", "key1" : {"key2" : {"key3" : {"key4" : 123, "k42" : "v42"}, "k32" : "v32"}, HWTEST_F() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/test/unittest/api/
H A Ddocumentdb_data_test.cpp32 std::string g_path = "./document.db";
74 std::string document = R""({"name":"Tmono","age":18,"addr":{"city":"shanghai","postal":200001}})""; in HWTEST_F() local
75 EXPECT_EQ(GRD_UpsertDoc(g_db, g_coll, R""({"_id":"1234"})"", document.c_str(), GRD_DOC_REPLACE), 1); in HWTEST_F()
93 std::string document = R""({"name":"Tmono","age":18,"addr":{"city":"shanghai","postal":200001}})""; in HWTEST_F() local
94 EXPECT_EQ(GRD_UpsertDoc(nullptr, g_coll, "1234", document.c_str(), GRD_DOC_REPLACE), GRD_INVALID_ARGS); in HWTEST_F()
106 std::string document = R""({"name":"Tmono","age":18,"addr":{"city":"shanghai","postal":200001}})""; in HWTEST_F() local
117 EXPECT_EQ(GRD_UpsertDoc(g_db, it.first, "1234", document.c_str(), GRD_DOC_REPLACE), it.second); in HWTEST_F()
131 std::string document = R""({"name":"Tmono","age":18,"addr":{"city":"shanghai","postal":200001}})""; in HWTEST_F() local
133 EXPECT_EQ(GRD_UpsertDoc(g_db, g_coll, filter.c_str(), document.c_str(), flags), GRD_INVALID_ARGS); in HWTEST_F()
154 * @tc.desc: Test upsert data with different document i
162 std::string document = R""({"name":"Tmn", "age":18, "addr":{"city":"shanghai", "postal":200001}})""; HWTEST_F() local
243 std::string document = R""({"name":"Tmono","age":18,"addr":{"city":"shanghai","postal":200001}})""; HWTEST_F() local
257 std::string document = R""({"name":"Tmono","age":18,"addr":{"city":"shanghai","postal":200001}})""; HWTEST_F() local
282 std::string document = R""({"name":"Tmono", "age":18, "addr":{"city":"shanghai", "postal":200001}})""; HWTEST_F() local
313 std::string document = R""({"_id":"1234","field1":{"c_field":{"cc_field":{"ccc_field":1}}},"field2":2})""; HWTEST_F() local
[all...]
H A Ddocumentdb_insert_test.cpp28 std::string g_path = "./document.db";
90 * @tc.steps:step1.Insert document into collection which dose not exist in HWTEST_F()
107 * @tc.steps:step1.Insert a document whose _id is integer in HWTEST_F()
113 * @tc.steps:step2.Insert a document whose _id is bool in HWTEST_F()
119 * @tc.steps:step2.Insert a document whose _id is NULL in HWTEST_F()
125 * @tc.steps:step2.Insert a document whose _id is ARRAY in HWTEST_F()
131 * @tc.steps:step2.Insert a document whose _id is OBJECT in HWTEST_F()
140 * @tc.desc: Insert a document whose _id has appeared before
148 * @tc.steps:step1.Insert a document whose _id is string in HWTEST_F()
155 * @tc.steps:step2.Insert a document whos in HWTEST_F()
360 string document = documentPart1 + jsonVal + documentPart2; HWTEST_F() local
400 const char *document = "{\\"_id\\" : \\"17\\", \\"level1\\" : {\\"level2\\" : {\\"level3\\" : {\\"level4\\" : x'1234'\\ HWTEST_F() local
418 const char *document = "some random string not JSON format"; HWTEST_F() local
614 string document = document1 + document2 + document_midlle + document4 + document5; HWTEST_F() local
732 string document = document1 + document2 + document_midlle + document4 + document5; HWTEST_F() local
[all...]
H A Ddocumentdb_delete_test.cpp33 std::string g_path = "./document.db";
42 void InsertDoc(const char *collectionName, const char *document);
64 * @tc.steps:step2. Insert many document in order to delete in SetUp()
108 * @tc.steps:step1. Try to find the deleted document in ChkDeleteResWithFilter()
125 void DocumentDBDeleteTest::InsertDoc(const char *collectionName, const char *document) in InsertDoc() argument
127 EXPECT_EQ(GRD_InsertDoc(g_db, collectionName, document, 0), GRD_OK); in InsertDoc()
140 * @tc.steps:step1. Delete all the document in HWTEST_F()
302 * @tc.desc: Test delete document when filter _id is int and string
310 * @tc.steps:step1. Test delete document when filter _id is int and string. in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/executor/document/
H A Dgrd_document_api_inner.cpp61 int32_t GRD_UpsertDocInner(GRD_DB *db, const char *collectionName, const char *filter, const char *document, in GRD_UpsertDocInner() argument
65 document == nullptr) { in GRD_UpsertDocInner()
68 int ret = db->store_->UpsertDocument(collectionName, filter, document, flags); in GRD_UpsertDocInner()
75 int32_t GRD_InsertDocInner(GRD_DB *db, const char *collectionName, const char *document, uint32_t flags) in GRD_InsertDocInner() argument
77 if (db == nullptr || db->store_ == nullptr || collectionName == nullptr || document == nullptr) { in GRD_InsertDocInner()
80 int ret = db->store_->InsertDocument(collectionName, document, flags); in GRD_InsertDocInner()
H A Dgrd_document_api.cpp65 GRD_API int32_t GRD_UpsertDoc(GRD_DB *db, const char *collectionName, const char *filter, const char *document, in GRD_UpsertDoc() argument
75 return GRD_DocApiInfo.UpsertDocApi(db, collectionName, filter, document, flags); in GRD_UpsertDoc()
78 GRD_API int32_t GRD_InsertDoc(GRD_DB *db, const char *collectionName, const char *document, uint32_t flags) in GRD_InsertDoc() argument
87 return GRD_DocApiInfo.InsertDocApi(db, collectionName, document, flags); in GRD_InsertDoc()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/include/
H A Dcollection.h30 int InsertDocument(const std::string &id, const std::string &document, bool &isIdExist);
31 int GetDocumentById(Key &key, Value &document) const;
37 int UpdateDocument(const std::string &id, const std::string &document);
H A Ddocument_store.h41 int UpsertDocument(const std::string &collection, const std::string &filter, const std::string &document,
44 int InsertDocument(const std::string &collection, const std::string &document, uint32_t flags);
72 int UpsertDataIntoDB(std::shared_ptr<QueryContext> &context, JsonObject &filterObj, const std::string &document,
74 int InsertDataIntoDB(const std::string &collection, const std::string &document, JsonObject &documentObj,
/foundation/arkui/ace_engine/test/component_test/tools/previewer_host/main/
H A Dcollect_results_and_visualize.js229 var bodyElement = document.getElementById('body');
231 var chart = echarts.init(document.getElementById('chart'));
260 var id = document.getElementById('summary');
283 var tableBody = document.querySelector('#table');
285 var row = document.createElement('tr');
287 var componentNameCell = document.createElement('td');
291 var caseNameCell = document.createElement('td');
295 var codeLineCell = document.createElement('td');
299 var messageCell = document.createElement('td');
303 var resultCell = document
[all...]
H A Dgitee_rest_api.js35 const document = dom.window.document;
36 const anchors = document.getElementsByTagName('a');
/foundation/arkui/ace_engine/test/component_test/tools/middle_ground/public/
H A Dindex.js31 const tdEle = document.createElement('td');
32 const newElement = document.createElement('input');
33 const buttonEle = document.createElement('button');
34 const textEle = document.createTextNode(value);
185 const otherCheckbox = document.getElementById(val);
190 let data = document.getElementById(value + 2) ? document.getElementById(value + 2) : document.getElementById(value);
204 let elementList = document.querySelectorAll(`tr[${value}]`);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/interface/src/
H A Dcollection.cpp51 int Collection::InsertDocument(const std::string &id, const std::string &document, bool &isIdExist) in InsertDocument() argument
65 Value valSet(document.begin(), document.end()); in InsertDocument()
73 int Collection::GetDocumentById(Key &key, Value &document) const in GetDocumentById()
78 return executor_->GetDataById(name_, key, document); in GetDocumentById()
H A Ddocument_store.cpp151 GLOGE("args document's length is too long"); in UpdateArgsCheck()
179 GLOGW("Get original document not found."); in GetUpDataRePlaceData()
182 GLOGE("Get original document failed. %d", errCode); in GetUpDataRePlaceData()
202 GLOGE("document's length is too long"); in GetUpDataRePlaceData()
284 int UpsertArgsCheck(const std::string &collection, const std::string &filter, const std::string &document, in UpsertArgsCheck() argument
293 if (document.length() >= JSON_LENS_MAX || filter.length() >= JSON_LENS_MAX) { in UpsertArgsCheck()
328 GLOGE("document's length is too long"); in GetUpsertRePlaceData()
334 GLOGW("Get original document failed. %d", errCode); in GetUpsertRePlaceData()
336 } else if (errCode == E_OK) { // document has been inserted in GetUpsertRePlaceData()
349 GLOGE("document' in GetUpsertRePlaceData()
382 UpsertDataIntoDB(std::shared_ptr<QueryContext> &context, JsonObject &filterObj, const std::string &document, JsonObject &documentObj, bool &isReplace) UpsertDataIntoDB() argument
432 UpsertDocumentFormatCheck(const std::string &document, JsonObject &documentObj) UpsertDocumentFormatCheck() argument
445 UpsertDocument(const std::string &collection, const std::string &filter, const std::string &document, uint32_t flags) UpsertDocument() argument
483 InsertArgsCheck(const std::string &collection, const std::string &document, uint32_t flags) InsertArgsCheck() argument
502 InsertDataIntoDB(const std::string &collection, const std::string &document, JsonObject &documentObj, bool &isIdExist) InsertDataIntoDB() argument
520 InsertDocument(const std::string &collection, const std::string &document, uint32_t flags) InsertDocument() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/
H A Dcard_frontend_delegate.cpp74 auto document = AceType::MakeRefPtr<DOMDocument>(pageId); in CreatePage() local
75 page_ = AceType::MakeRefPtr<Framework::JsAcePage>(pageId, document, url); in CreatePage()
84 auto document = AceType::MakeRefPtr<DOMDocument>(pageId); in CreatePage() local
85 page_ = AceType::MakeRefPtr<Framework::JsAcePage>(pageId, document, url, container); in CreatePage()
H A Dcard_frontend_declarative.cpp132 auto document = page->GetDomDocument(); in OnPageLoaded()
147 if (document) { in OnPageLoaded()
150 for (int32_t nodeId : document->GetProxyRelatedNodes()) { in OnPageLoaded()
162 if (document) { in OnPageLoaded()
163 document->HandleComponentPostBinding(); in OnPageLoaded()
H A Dcard_frontend.cpp209 auto document = page->GetDomDocument(); in OnPageLoaded()
224 if (document) { in OnPageLoaded()
227 for (int32_t nodeId : document->GetProxyRelatedNodes()) { in OnPageLoaded()
239 if (document) { in OnPageLoaded()
240 document->HandleComponentPostBinding(); in OnPageLoaded()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/include/grd_document/
H A Dgrd_document_api.h32 GRD_API int32_t GRD_InsertDoc(GRD_DB *db, const char *collectionName, const char *document, uint32_t flags);
40 GRD_API int32_t GRD_UpsertDoc(GRD_DB *db, const char *collectionName, const char *filter, const char *document,
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/executor/include/
H A Dgrd_document_api_inner.h29 int32_t GRD_InsertDocInner(GRD_DB *db, const char *collectionName, const char *document, uint32_t flags);
37 int32_t GRD_UpsertDocInner(GRD_DB *db, const char *collectionName, const char *filter, const char *document,
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_document/
H A Ddocument_napi.cpp38 NAPI_MODULE(document, DocumentExport)
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/
H A Dcj_page_router.cpp133 auto document = AceType::MakeRefPtr<DOMDocument>(pageId); in LoadPage() local
134 auto page = AceType::MakeRefPtr<JsAcePage>(pageId, document, target.url, nullptr); in LoadPage()
156 document->HandlePageLoadFinish(); in LoadPage()
507 auto document = page->GetDomDocument(); in OnPrePageChange() local
508 CHECK_NULL_VOID(document); in OnPrePageChange()
513 accessManager->SetRootNodeId(document->GetRootNodeId()); in OnPrePageChange()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/common/include/
H A Dgrd_api_manager.h30 typedef int32_t (*InsertDoc)(GRD_DB *db, const char *collectionName, const char *document, uint32_t flags);
36 const char *document, uint32_t flags);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/json_fuzzer/
H A Djson_fuzzer.cpp191 std::string document = documentPart1 + jsonVal + documentPart2; in InsertDocTwoFuzz() local
192 GRD_InsertDoc(g_db, COLLECTION_NAME, document.c_str(), 0); in InsertDocTwoFuzz()
374 std::string document = documentNew1 + documentNew2 + documentData + documentNew3 + documentNew4; in InsertDocFuzz() local
375 GRD_InsertDoc(g_db, COLLECTION_NAME, document.c_str(), 0); in InsertDocFuzz()
860 std::string document = "{\"a\":" + input + ", \"doc64\" : " + input + "}"; in FindDocFuzzPlus() local
862 GRD_UpsertDoc(g_db, COLLECTION_NAME, filter.c_str(), document.c_str(), 0); in FindDocFuzzPlus()
863 GRD_UpsertDoc(g_db, COLLECTION_NAME, filter.c_str(), document.c_str(), 0); in FindDocFuzzPlus()
864 GRD_UpsertDoc(g_db, COLLECTION_NAME, filter.c_str(), document.c_str(), 0); in FindDocFuzzPlus()
865 GRD_UpsertDoc(g_db, COLLECTION_NAME, filter.c_str(), document.c_str(), 0); in FindDocFuzzPlus()
866 GRD_UpsertDoc(g_db, COLLECTION_NAME, filter.c_str(), document in FindDocFuzzPlus()
1322 FindAndReleaseFuzz(std::string document, std::string filter, Query query, const std::string &input) FindAndReleaseFuzz() argument
1381 std::string document = "{\\"field\\": [\\"" + input + "\\",\\"" + input + "\\",\\"" + input + "\\"]}"; NextFuzz() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/jsoninner_fuzzer/
H A Djsoninner_fuzzer.cpp200 std::string document = documentPart1 + jsonVal + documentPart2; in InsertDocTwoFuzz() local
201 GRD_InsertDocInner(g_db, COLLECTION_NAME, document.c_str(), 0); in InsertDocTwoFuzz()
383 std::string document = documentNew1 + documentNew2 + documentData + documentNew3 + documentNew4; in InsertDocFuzz() local
384 GRD_InsertDocInner(g_db, COLLECTION_NAME, document.c_str(), 0); in InsertDocFuzz()
869 std::string document = "{\"a\":" + input + ", \"doc64\" : " + input + "}"; in FindDocFuzzPlus() local
871 GRD_UpsertDocInner(g_db, COLLECTION_NAME, filter.c_str(), document.c_str(), 0); in FindDocFuzzPlus()
872 GRD_UpsertDocInner(g_db, COLLECTION_NAME, filter.c_str(), document.c_str(), 0); in FindDocFuzzPlus()
873 GRD_UpsertDocInner(g_db, COLLECTION_NAME, filter.c_str(), document.c_str(), 0); in FindDocFuzzPlus()
874 GRD_UpsertDocInner(g_db, COLLECTION_NAME, filter.c_str(), document.c_str(), 0); in FindDocFuzzPlus()
875 GRD_UpsertDocInner(g_db, COLLECTION_NAME, filter.c_str(), document in FindDocFuzzPlus()
1331 FindAndReleaseFuzz(std::string document, std::string filter, Query query, const std::string &input) FindAndReleaseFuzz() argument
1390 std::string document = "{\\"field\\": [\\"" + input + "\\",\\"" + input + "\\",\\"" + input + "\\"]}"; NextFuzz() local
[all...]
/foundation/arkui/ui_lite/test/autotest/src/
H A Dtcp_socket_manager.cpp134 QJsonDocument document = QJsonDocument::fromJson(recv->toStdString().data(), &parseError); in OnGetMsgInfo() local
140 if (document.isObject()) { in OnGetMsgInfo()
141 object = document.object(); in OnGetMsgInfo()
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/
H A Djs_ace_page.cpp25 JsAcePage::JsAcePage(int32_t pageId, const RefPtr<DOMDocument>& document, const std::string& url,
27 : AcePage(pageId), domDoc_(document), url_(url), container_(container),

Completed in 18 milliseconds

12