Home
last modified time | relevance | path

Searched refs:cloudField (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/cloud/
H A Dschema_mgr.cpp63 for (const Field &cloudField : cloudFields) { in CompareFieldSchema() local
68 if (IsAssetPrimaryField(cloudField)) { in CompareFieldSchema()
73 if (!CompareType(localField, cloudField)) { in CompareFieldSchema()
77 if (!CompareNullable(localField, cloudField)) { in CompareFieldSchema()
81 if (!ComparePrimaryField(primaryKeys, cloudField)) { in CompareFieldSchema()
85 cloudColNames.emplace(cloudField.colName); in CompareFieldSchema()
102 bool SchemaMgr::IsAssetPrimaryField(const Field &cloudField) in IsAssetPrimaryField() argument
104 …return cloudField.primary && (cloudField.type == TYPE_INDEX<Assets> || cloudField.type == TYPE_IND… in IsAssetPrimaryField()
110 switch (cloudField.type) { in CompareType()
133 return localField.IsNotNull() == !cloudField.nullable; in CompareNullable()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/include/cloud/
H A Dschema_mgr.h40 bool IsAssetPrimaryField(const Field &cloudField);
41 bool CompareType(const FieldInfo &localField, const Field &cloudField);
42 bool CompareNullable(const FieldInfo &localField, const Field &cloudField);
43 bool ComparePrimaryField(std::map<int, FieldName> &localPrimaryKeys, const Field &cloudField);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Dcloud_db_sync_utils_test.h45 …static void InitSyncUtils(const std::vector<Field> &cloudField, RelationalStoreObserverUnitTest *&…
82 static void GetCloudDbSchema(const std::string &tableName, const std::vector<Field> &cloudField,
H A Dcloud_db_sync_utils_test.cpp48 void CloudDBSyncUtilsTest::InitSyncUtils(const std::vector<Field> &cloudField, in InitSyncUtils() argument
69 GetCloudDbSchema(TABLE_NAME, cloudField, dataBaseSchema); in InitSyncUtils()
300 …SyncUtilsTest::GetCloudDbSchema(const std::string &tableName, const std::vector<Field> &cloudField, in GetCloudDbSchema() argument
306 .fields = cloudField in GetCloudDbSchema()