/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/test/unittest/oh_adapter/ |
H A D | documentdb_json_common_test.cpp | 47 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 D | documentdb_data_test.cpp | 32 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 D | documentdb_insert_test.cpp | 28 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 D | documentdb_delete_test.cpp | 33 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 D | grd_document_api_inner.cpp | 61 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 D | grd_document_api.cpp | 65 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 D | collection.h | 30 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 D | document_store.h | 41 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 D | collect_results_and_visualize.js | 229 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 D | gitee_rest_api.js | 35 const document = dom.window.document; 36 const anchors = document.getElementsByTagName('a');
|
/foundation/arkui/ace_engine/test/component_test/tools/middle_ground/public/ |
H A D | index.js | 31 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 D | collection.cpp | 51 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 D | document_store.cpp | 151 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 D | card_frontend_delegate.cpp | 74 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 D | card_frontend_declarative.cpp | 132 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 D | card_frontend.cpp | 209 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 D | grd_document_api.h | 32 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 D | grd_document_api_inner.h | 29 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 D | document_napi.cpp | 38 NAPI_MODULE(document, DocumentExport)
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/frontend/ |
H A D | cj_page_router.cpp | 133 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 D | grd_api_manager.h | 30 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 D | json_fuzzer.cpp | 191 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 D | jsoninner_fuzzer.cpp | 200 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 D | tcp_socket_manager.cpp | 134 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 D | js_ace_page.cpp | 25 JsAcePage::JsAcePage(int32_t pageId, const RefPtr<DOMDocument>& document, const std::string& url, 27 : AcePage(pageId), domDoc_(document), url_(url), container_(container),
|