Searched refs:distributedType (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/ |
H A D | napi_rdb_const_properties.cpp | 139 napi_value distributedType = nullptr; in ExportDistributedType() local 140 napi_create_object(env, &distributedType); in ExportDistributedType() 142 …SET_NAPI_PROPERTY(distributedType, "DISTRIBUTED_DEVICE", int32_t(DistributedTableType::DISTRIBUTED… in ExportDistributedType() 143 …SET_NAPI_PROPERTY(distributedType, "DISTRIBUTED_CLOUD", int32_t(DistributedTableType::DISTRIBUTED_… in ExportDistributedType() 144 napi_object_freeze(env, distributedType); in ExportDistributedType() 145 return distributedType; in ExportDistributedType()
|
H A D | napi_rdb_store.cpp | 348 context->distributedType = DistributedRdb::DISTRIBUTED_DEVICE; in ParseDistributedTypeArg() 350 auto status = JSUtils::Convert2ValueExt(env, argv[1], context->distributedType); in ParseDistributedTypeArg() 351 …bool checked = status == napi_ok && context->distributedType >= DistributedRdb::DISTRIBUTED_DEVICE… in ParseDistributedTypeArg() 352 context->distributedType <= DistributedRdb::DISTRIBUTED_CLOUD; in ParseDistributedTypeArg() 1343 context->tablesNames, context->distributedType, context->distributedConfig); in SetDistributedTables()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/ |
H A D | napi_rdb_context.h | 62 int32_t distributedType; member 78 distributedType(DistributedRdb::DistributedTableType::DISTRIBUTED_DEVICE), in RdbStoreContext()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_store_config_test.cpp | 589 DistributedType distributedType = DistributedType::RDB_DEVICE_COLLABORATION; variable 590 config.SetDistributedType(distributedType); 592 EXPECT_EQ(distributedType, retDistributedType); 602 distributedType = DistributedType::RDB_DISTRIBUTED_TYPE_MAX; 603 config.SetDistributedType(distributedType); 605 EXPECT_NE(distributedType, retDistributedType);
|