1e41f4b71Sopenharmony_ci# RDB 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci 4e41f4b71Sopenharmony_ci## Overview 5e41f4b71Sopenharmony_ci 6e41f4b71Sopenharmony_ciThe relational database (RDB) store manages data based on relational models. The RDB store provides a complete mechanism for managing local databases based on the underlying SQLite. It provides a series of methods for performing operations, such as adding, deleting, modifying, and querying data, and supports direct execution of SQL statements to satisfy different needs in complicated scenarios. 7e41f4b71Sopenharmony_ci 8e41f4b71Sopenharmony_ci**System capability**: SystemCapability.DistributedDataManager.RelationalStore.Core 9e41f4b71Sopenharmony_ci 10e41f4b71Sopenharmony_ci**Since**: 10 11e41f4b71Sopenharmony_ci 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci## Summary 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ci 16e41f4b71Sopenharmony_ci### Files 17e41f4b71Sopenharmony_ci 18e41f4b71Sopenharmony_ci| Name | Description | 19e41f4b71Sopenharmony_ci| -------- | -------- | 20e41f4b71Sopenharmony_ci| [oh_cursor.h](oh__cursor_8h.md) | Defines APIs for accessing the result set obtained by querying the RDB store.<br>**File to include**: <database/rdb/oh_cursor.h><br>**Library**: libnative_rdb_ndk.z.so<br>| 21e41f4b71Sopenharmony_ci| [oh_predicates.h](oh__predicates_8h.md) | Defines the predicates for RDB stores.<br>**File to include**: <database/rdb/oh_predicates.h><br>**Library**: libnative_rdb_ndk.z.so<br>| 22e41f4b71Sopenharmony_ci| [oh_value_object.h](oh__value__object_8h.md) | Defines the APIs for type conversion.<br>**File to include**: <database/rdb/oh_value_object.h><br>**Library**: libnative_rdb_ndk.z.so<br>| 23e41f4b71Sopenharmony_ci| [oh_values_bucket.h](oh__values__bucket_8h.md) | Defines the types of the key and value in a key-value (KV) pair.<br>**File to include**: <database/rdb/oh_values_bucket.h><br>**Library**: libnative_rdb_ndk.z.so<br>| 24e41f4b71Sopenharmony_ci| [relational_store.h](relational__store_8h.md) | Defines APIs for managing an RDB store.<br>**File to include**: <database/rdb/relational_store.h><br>**Library**: libnative_rdb_ndk.z.so<br>| 25e41f4b71Sopenharmony_ci| [relational_store_error_code.h](relational__store__error__code_8h.md) | Defines the error codes used for RDB stores.<br>**File to include**: <database/rdb/relational_store_error_code.h><br>**Library**: libnative_rdb_ndk.z.so | 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ci 28e41f4b71Sopenharmony_ci### Structs 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci| Name | Description | 31e41f4b71Sopenharmony_ci| -------- | -------- | 32e41f4b71Sopenharmony_ci| [OH_Cursor](_o_h___cursor.md) | Defines a result set. | 33e41f4b71Sopenharmony_ci| [OH_Predicates](_o_h___predicates.md) | Defines a **predicates** object. | 34e41f4b71Sopenharmony_ci| [OH_VObject](_o_h___v_object.md) | Defines the allowed data field types. | 35e41f4b71Sopenharmony_ci| [OH_VBucket](_o_h___v_bucket.md) | Defines the types of the key and value in a KV pair. | 36e41f4b71Sopenharmony_ci| [OH_Rdb_Config](_o_h___rdb___config.md) | Defines the RDB store configuration. | 37e41f4b71Sopenharmony_ci| [OH_Rdb_Store](_o_h___rdb___store.md) | Defines the RDB store type. | 38e41f4b71Sopenharmony_ci| [Rdb_DistributedConfig](_rdb___distributed_config.md) | Defines the distributed configuration of a table. | 39e41f4b71Sopenharmony_ci| [Rdb_KeyInfo](_rdb___key_info.md) | Defines the primary key or row number of the row that changes. | 40e41f4b71Sopenharmony_ci| [Rdb_KeyInfo::Rdb_KeyData](union_rdb___key_info_1_1_rdb___key_data.md) | Defines the changed data. | 41e41f4b71Sopenharmony_ci| [Rdb_ChangeInfo](_rdb___change_info.md) | Defines the details about the device-cloud sync process. | 42e41f4b71Sopenharmony_ci| [Rdb_SubscribeCallback](union_rdb___subscribe_callback.md) | Defines a callback used to return the subscribed event. | 43e41f4b71Sopenharmony_ci| [Rdb_DataObserver](_rdb___data_observer.md) | Defines the data observer. | 44e41f4b71Sopenharmony_ci| [Rdb_Statistic](_rdb___statistic.md) | Defines the device-cloud sync statistics of a database table. | 45e41f4b71Sopenharmony_ci| [Rdb_TableDetails](_rdb___table_details.md) | Defines the statistics of device-cloud upload and download tasks of a database table. | 46e41f4b71Sopenharmony_ci| [Rdb_ProgressDetails](_rdb___progress_details.md) | Defines the statistics of the overall device-cloud sync (upload and download) tasks of an RDB store. | 47e41f4b71Sopenharmony_ci| [Rdb_ProgressObserver](_rdb___progress_observer.md) | Defines the observer of the device-cloud sync progress. | 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ci 50e41f4b71Sopenharmony_ci### Macros 51e41f4b71Sopenharmony_ci 52e41f4b71Sopenharmony_ci| Name | Description | 53e41f4b71Sopenharmony_ci| -------- | -------- | 54e41f4b71Sopenharmony_ci| [DISTRIBUTED_CONFIG_VERSION](#distributed_config_version) 1 | Version of [Rdb_DistributedConfig](_rdb___distributed_config.md). | 55e41f4b71Sopenharmony_ci| [DISTRIBUTED_CHANGE_INFO_VERSION](#distributed_change_info_version) 1 | Version of [Rdb_ChangeInfo](_rdb___change_info.md). | 56e41f4b71Sopenharmony_ci| [DISTRIBUTED_PROGRESS_DETAIL_VERSION](#distributed_progress_detail_version) 1 | Version of [Rdb_ProgressDetails](_rdb___progress_details.md). | 57e41f4b71Sopenharmony_ci 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ci### Types 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ci| Name | Description | 62e41f4b71Sopenharmony_ci| -------- | -------- | 63e41f4b71Sopenharmony_ci| [OH_ColumnType](#oh_columntype) | Defines an enum for the field types in an RDB store. | 64e41f4b71Sopenharmony_ci| [OH_Cursor](#oh_cursor) | Defines a struct for a result set. | 65e41f4b71Sopenharmony_ci| [OH_OrderType](#oh_ordertype) | Defines an enum for sorting types. | 66e41f4b71Sopenharmony_ci| [OH_Predicates](#oh_predicates) | Defines a **predicates** object. | 67e41f4b71Sopenharmony_ci| [OH_VObject](#oh_vobject) | Defines a struct for allowed data field types. | 68e41f4b71Sopenharmony_ci| [OH_VBucket](#oh_vbucket) | Defines a struct for the types of the key and value in a KV pair. | 69e41f4b71Sopenharmony_ci| [OH_Rdb_SecurityLevel](#oh_rdb_securitylevel) | Defines an enum for RDB store security levels. | 70e41f4b71Sopenharmony_ci| [Rdb_SecurityArea](#rdb_securityarea) | Defines an enum for security area levels of an RDB store. | 71e41f4b71Sopenharmony_ci| [Rdb_DistributedType](#rdb_distributedtype) | Defines an enum for distributed types. | 72e41f4b71Sopenharmony_ci| [Rdb_DistributedConfig](#rdb_distributedconfig) | Defines a struct for distributed configuration of a table. | 73e41f4b71Sopenharmony_ci| [Rdb_ChangeType](#rdb_changetype) | Defines an enum for data change types. | 74e41f4b71Sopenharmony_ci| [Rdb_KeyInfo](#rdb_keyinfo) | Defines a struct for the primary key or row number of the row that changes. | 75e41f4b71Sopenharmony_ci| [Rdb_ChangeInfo](#rdb_changeinfo) | Defines a struct for the details about the device-cloud sync process. | 76e41f4b71Sopenharmony_ci| [Rdb_SubscribeType](#rdb_subscribetype) | Defines an enum for subscription types. | 77e41f4b71Sopenharmony_ci| [Rdb_BriefObserver](#rdb_briefobserver) | Defines a callback used to return the device-cloud data change event. | 78e41f4b71Sopenharmony_ci| [Rdb_DetailsObserver](#rdb_detailsobserver) | Defines a callback used to return the details about the device-cloud data change. | 79e41f4b71Sopenharmony_ci| [Rdb_SubscribeCallback](#rdb_subscribecallback) | Defines a callback used to return the subscribed event. | 80e41f4b71Sopenharmony_ci| [Rdb_DataObserver](#rdb_dataobserver) | Defines a struct for the data observer. | 81e41f4b71Sopenharmony_ci| [Rdb_SyncMode](#rdb_syncmode) | Defines an enum for RDB store sync modes. | 82e41f4b71Sopenharmony_ci| [Rdb_Statistic](#rdb_statistic) | Defines a struct for the device-cloud sync statistics of a database table. | 83e41f4b71Sopenharmony_ci| [Rdb_TableDetails](#rdb_tabledetails) | Defines a struct for statistics of device-cloud upload and download tasks of a database table. | 84e41f4b71Sopenharmony_ci| [Rdb_Progress](#rdb_progress) | Defines an enum for device-cloud sync progresses. | 85e41f4b71Sopenharmony_ci| [Rdb_ProgressCode](#rdb_progresscode) | Defines an enum for device-cloud sync states. | 86e41f4b71Sopenharmony_ci| [Rdb_ProgressDetails](#rdb_progressdetails) | Defines a struct for statistics of the overall device-cloud sync (upload and download) tasks of an RDB store. | 87e41f4b71Sopenharmony_ci| [Rdb_ProgressCallback](#rdb_progresscallback) | Defines a callback used to return the device-cloud sync progress. | 88e41f4b71Sopenharmony_ci| [Rdb_SyncCallback](#rdb_synccallback) | Defines a callback for device-cloud sync. | 89e41f4b71Sopenharmony_ci| [Rdb_ProgressObserver](#rdb_progressobserver) | Defines the observer of the device-cloud sync progress. | 90e41f4b71Sopenharmony_ci| [OH_Rdb_ErrCode](#oh_rdb_errcode) | Defines an enum for error codes. | 91e41f4b71Sopenharmony_ci 92e41f4b71Sopenharmony_ci 93e41f4b71Sopenharmony_ci### Enums 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ci| Name | Description | 96e41f4b71Sopenharmony_ci| -------- | -------- | 97e41f4b71Sopenharmony_ci| [OH_ColumnType](#oh_columntype-1) {<br>TYPE_NULL = 0, TYPE_INT64, TYPE_REAL, TYPE_TEXT,<br>TYPE_BLOB, TYPE_ASSET, TYPE_ASSETS<br>} | Enumerates the types of the fields in an RDB store. | 98e41f4b71Sopenharmony_ci| [OH_OrderType](#oh_ordertype-1) { ASC = 0, DESC = 1 } | Enumerates the sorting types. | 99e41f4b71Sopenharmony_ci| [OH_Rdb_SecurityLevel](#oh_rdb_securitylevel-1) { S1 = 1, S2, S3, S4 } | Enumerates the RDB store security levels. | 100e41f4b71Sopenharmony_ci| [Rdb_SecurityArea](#rdb_securityarea-1) { RDB_SECURITY_AREA_EL1 = 1, RDB_SECURITY_AREA_EL2, RDB_SECURITY_AREA_EL3, RDB_SECURITY_AREA_EL4 } | Enumerates the security area levels of an RDB store. | 101e41f4b71Sopenharmony_ci| [Rdb_DistributedType](#rdb_distributedtype-1) { RDB_DISTRIBUTED_CLOUD } | Enumerates the distributed types. | 102e41f4b71Sopenharmony_ci| [Rdb_ChangeType](#rdb_changetype-1) { RDB_DATA_CHANGE, RDB_ASSET_CHANGE } | Enumerates the data change types. | 103e41f4b71Sopenharmony_ci| [Rdb_SubscribeType](#rdb_subscribetype-1) { RDB_SUBSCRIBE_TYPE_CLOUD, RDB_SUBSCRIBE_TYPE_CLOUD_DETAILS, RDB_SUBSCRIBE_TYPE_LOCAL_DETAILS } | Enumerates the subscription types. | 104e41f4b71Sopenharmony_ci| [Rdb_SyncMode](#rdb_syncmode-1) { RDB_SYNC_MODE_TIME_FIRST, RDB_SYNC_MODE_NATIVE_FIRST, RDB_SYNC_MODE_CLOUD_FIRST } | Enumerates the RDB sync modes. | 105e41f4b71Sopenharmony_ci| [Rdb_Progress](#rdb_progress-1) { RDB_SYNC_BEGIN, RDB_SYNC_IN_PROGRESS, RDB_SYNC_FINISH } | Enumerates the device-cloud sync progresses. | 106e41f4b71Sopenharmony_ci| [Rdb_ProgressCode](#rdb_progresscode-1) {<br>RDB_SUCCESS, RDB_UNKNOWN_ERROR, RDB_NETWORK_ERROR, RDB_CLOUD_DISABLED,<br>RDB_LOCKED_BY_OTHERS, RDB_RECORD_LIMIT_EXCEEDED, RDB_NO_SPACE_FOR_ASSET<br>} | Enumerates the device-cloud sync states. | 107e41f4b71Sopenharmony_ci| [OH_Rdb_ErrCode](#oh_rdb_errcode-1) {<br>RDB_ERR = -1, RDB_OK = 0, E_BASE = 14800000, RDB_E_NOT_SUPPORTED = 801,<br>RDB_E_ERROR = E_BASE, RDB_E_INVALID_ARGS = (E_BASE + 1), RDB_E_CANNOT_UPDATE_READONLY = (E_BASE + 2), RDB_E_REMOVE_FILE = (E_BASE + 3),<br>RDB_E_EMPTY_TABLE_NAME = (E_BASE + 5), RDB_E_EMPTY_VALUES_BUCKET = (E_BASE + 6), RDB_E_EXECUTE_IN_STEP_QUERY = (E_BASE + 7), RDB_E_INVALID_COLUMN_INDEX = (E_BASE + 8),<br>RDB_E_INVALID_COLUMN_TYPE = (E_BASE + 9), RDB_E_EMPTY_FILE_NAME = (E_BASE + 10), RDB_E_INVALID_FILE_PATH = (E_BASE + 11), RDB_E_TRANSACTION_IN_EXECUTE = (E_BASE + 12),<br>RDB_E_INVALID_STATEMENT = (E_BASE + 13), RDB_E_EXECUTE_WRITE_IN_READ_CONNECTION = (E_BASE + 14), RDB_E_BEGIN_TRANSACTION_IN_READ_CONNECTION = (E_BASE + 15), RDB_E_NO_TRANSACTION_IN_SESSION = (E_BASE + 16),<br>RDB_E_MORE_STEP_QUERY_IN_ONE_SESSION = (E_BASE + 17), RDB_E_NO_ROW_IN_QUERY = (E_BASE + 18), RDB_E_INVALID_BIND_ARGS_COUNT = (E_BASE + 19), RDB_E_INVALID_OBJECT_TYPE = (E_BASE + 20),<br>RDB_E_INVALID_CONFLICT_FLAG = (E_BASE + 21), RDB_E_HAVING_CLAUSE_NOT_IN_GROUP_BY = (E_BASE + 22), RDB_E_NOT_SUPPORTED_BY_STEP_RESULT_SET = (E_BASE + 23), RDB_E_STEP_RESULT_SET_CROSS_THREADS = (E_BASE + 24),<br>RDB_E_STEP_RESULT_QUERY_NOT_EXECUTED = (E_BASE + 25), RDB_E_STEP_RESULT_IS_AFTER_LAST = (E_BASE + 26), RDB_E_STEP_RESULT_QUERY_EXCEEDED = (E_BASE + 27), RDB_E_STATEMENT_NOT_PREPARED = (E_BASE + 28),<br>RDB_E_EXECUTE_RESULT_INCORRECT = (E_BASE + 29), RDB_E_STEP_RESULT_CLOSED = (E_BASE + 30), RDB_E_RELATIVE_PATH = (E_BASE + 31), RDB_E_EMPTY_NEW_ENCRYPT_KEY = (E_BASE + 32),<br>RDB_E_CHANGE_UNENCRYPTED_TO_ENCRYPTED = (E_BASE + 33), RDB_E_CHANGE_ENCRYPT_KEY_IN_BUSY = (E_BASE + 34), RDB_E_STEP_STATEMENT_NOT_INIT = (E_BASE + 35), RDB_E_NOT_SUPPORTED_ATTACH_IN_WAL_MODE = (E_BASE + 36),<br>RDB_E_CREATE_FOLDER_FAIL = (E_BASE + 37), RDB_E_SQLITE_SQL_BUILDER_NORMALIZE_FAIL = (E_BASE + 38), RDB_E_STORE_SESSION_NOT_GIVE_CONNECTION_TEMPORARILY = (E_BASE + 39), RDB_E_STORE_SESSION_NO_CURRENT_TRANSACTION = (E_BASE + 40),<br>RDB_E_NOT_SUPPORT = (E_BASE + 41), RDB_E_INVALID_PARCEL = (E_BASE + 42), RDB_E_QUERY_IN_EXECUTE = (E_BASE + 43), RDB_E_SET_PERSIST_WAL = (E_BASE + 44),<br>RDB_E_DB_NOT_EXIST = (E_BASE + 45), RDB_E_ARGS_READ_CON_OVERLOAD = (E_BASE + 46), RDB_E_WAL_SIZE_OVER_LIMIT = (E_BASE + 47), RDB_E_CON_OVER_LIMIT = (E_BASE + 48)<br>} | Enumerates the RDB store error codes. | 108e41f4b71Sopenharmony_ci 109e41f4b71Sopenharmony_ci 110e41f4b71Sopenharmony_ci### Functions 111e41f4b71Sopenharmony_ci 112e41f4b71Sopenharmony_ci| Name | Description | 113e41f4b71Sopenharmony_ci| -------- | -------- | 114e41f4b71Sopenharmony_ci| [OH_VBucket_PutAsset](#oh_vbucket_putasset) ([OH_VBucket](_o_h___v_bucket.md) \*bucket, const char \*field, OH_Asset \*value) | Puts an **OH_Asset** object into the [OH_VBucket](_o_h___v_bucket.md) object with the given column name. | 115e41f4b71Sopenharmony_ci| [OH_VBucket_PutAssets](#oh_vbucket_putassets) ([OH_VBucket](_o_h___v_bucket.md) \*bucket, const char \*field, OH_Asset \*\*value, int count) | Puts an array of **OH_Asset** objects into the [OH_VBucket](_o_h___v_bucket.md) object with the given column name. | 116e41f4b71Sopenharmony_ci| [OH_Rdb_CreateValueObject](#oh_rdb_createvalueobject) () | Creates an [OH_VObject](_o_h___v_object.md) instance. | 117e41f4b71Sopenharmony_ci| [OH_Rdb_CreateValuesBucket](#oh_rdb_createvaluesbucket) () | Creates an [OH_VBucket](_o_h___v_bucket.md) instance. | 118e41f4b71Sopenharmony_ci| [OH_Rdb_CreatePredicates](#oh_rdb_createpredicates) (const char \*table) | Creates an [OH_Predicates](_o_h___predicates.md) instance. | 119e41f4b71Sopenharmony_ci| [OH_Rdb_GetOrOpen](#oh_rdb_getoropen) (const [OH_Rdb_Config](_o_h___rdb___config.md) \*config, int \*errCode) | Obtains an [OH_Rdb_Store](_o_h___rdb___store.md) instance for RDB store operations. | 120e41f4b71Sopenharmony_ci| [OH_Rdb_CloseStore](#oh_rdb_closestore) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store) | Closes an [OH_Rdb_Store](_o_h___rdb___store.md) object to reclaim the memory occupied. | 121e41f4b71Sopenharmony_ci| [OH_Rdb_DeleteStore](#oh_rdb_deletestore) (const [OH_Rdb_Config](_o_h___rdb___config.md) \*config) | Deletes an RDB store with the specified database file configuration. | 122e41f4b71Sopenharmony_ci| [OH_Rdb_Insert](#oh_rdb_insert) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, const char \*table, [OH_VBucket](_o_h___v_bucket.md) \*valuesBucket) | Inserts a row of data into a table. | 123e41f4b71Sopenharmony_ci| [OH_Rdb_Update](#oh_rdb_update) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, [OH_VBucket](_o_h___v_bucket.md) \*valuesBucket, [OH_Predicates](_o_h___predicates.md) \*predicates) | Updates data in an RDB store based on specified conditions. | 124e41f4b71Sopenharmony_ci| [OH_Rdb_Delete](#oh_rdb_delete) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, [OH_Predicates](_o_h___predicates.md) \*predicates) | Deletes data from an RDB store based on specified conditions. | 125e41f4b71Sopenharmony_ci| [OH_Rdb_Query](#oh_rdb_query) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, [OH_Predicates](_o_h___predicates.md) \*predicates, const char \*const \*columnNames, int length) | Queries data in an RDB store based on specified conditions. | 126e41f4b71Sopenharmony_ci| [OH_Rdb_Execute](#oh_rdb_execute) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, const char \*sql) | Executes an SQL statement but returns no value. | 127e41f4b71Sopenharmony_ci| [OH_Rdb_ExecuteQuery](#oh_rdb_executequery) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, const char \*sql) | Executes the SQL statement to query data in an RDB store. | 128e41f4b71Sopenharmony_ci| [OH_Rdb_BeginTransaction](#oh_rdb_begintransaction) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store) | Starts the transaction before executing the SQL statement. | 129e41f4b71Sopenharmony_ci| [OH_Rdb_RollBack](#oh_rdb_rollback) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store) | Rolls back the SQL statements executed. | 130e41f4b71Sopenharmony_ci| [OH_Rdb_Commit](#oh_rdb_commit) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store) | Commits the executed SQL statements. | 131e41f4b71Sopenharmony_ci| [OH_Rdb_Backup](#oh_rdb_backup) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, const char \*databasePath) | Backs up an RDB store in the specified directory. | 132e41f4b71Sopenharmony_ci| [OH_Rdb_Restore](#oh_rdb_restore) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, const char \*databasePath) | Restores an RDB store from the specified database backup file. | 133e41f4b71Sopenharmony_ci| [OH_Rdb_GetVersion](#oh_rdb_getversion) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int \*version) | Obtains the RDB store version. | 134e41f4b71Sopenharmony_ci| [OH_Rdb_SetVersion](#oh_rdb_setversion) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int version) | Sets the RDB store version. | 135e41f4b71Sopenharmony_ci| [OH_Rdb_SetDistributedTables](#oh_rdb_setdistributedtables) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, const char \*tables[], uint32_t count, [Rdb_DistributedType](#rdb_distributedtype) type, const [Rdb_DistributedConfig](_rdb___distributed_config.md) \*config) | Sets distributed database tables. | 136e41f4b71Sopenharmony_ci| [OH_Rdb_FindModifyTime](#oh_rdb_findmodifytime) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, const char \*tableName, const char \*columnName, [OH_VObject](_o_h___v_object.md) \*values) | Obtains the last modification time of a table in an RDB store. | 137e41f4b71Sopenharmony_ci| [OH_Rdb_Subscribe](#oh_rdb_subscribe) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, [Rdb_SubscribeType](#rdb_subscribetype) type, const [Rdb_DataObserver](_rdb___data_observer.md) \*observer) | Registers an observer for an RDB store. When data in the RDB store changes, a callback will be invoked to return the data changes. | 138e41f4b71Sopenharmony_ci| [OH_Rdb_Unsubscribe](#oh_rdb_unsubscribe) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, [Rdb_SubscribeType](#rdb_subscribetype) type, const [Rdb_DataObserver](_rdb___data_observer.md) \*observer) | Unregisters the observer of the specified type. | 139e41f4b71Sopenharmony_ci| [OH_Rdb_GetTableDetails](#oh_rdb_gettabledetails) ([Rdb_ProgressDetails](_rdb___progress_details.md) \*progress, int32_t version) | Obtains the device-cloud sync statistics of a table. | 140e41f4b71Sopenharmony_ci| [OH_Rdb_CloudSync](#oh_rdb_cloudsync) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, [Rdb_SyncMode](#rdb_syncmode) mode, const char \*tables, int count, const [Rdb_ProgressObserver](_rdb___progress_observer.md) \*observer) | Performs device-cloud sync. | 141e41f4b71Sopenharmony_ci| [OH_Rdb_SubscribeAutoSyncProgress](#oh_rdb_subscribeautosyncprogress) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, const [Rdb_ProgressObserver](_rdb___progress_observer.md) \*observer) | Subscribes to the automatic sync progress of an RDB store. The registered callback will be invoked to return the automatic sync progress. | 142e41f4b71Sopenharmony_ci| [OH_Rdb_UnsubscribeAutoSyncProgress](#oh_rdb_unsubscribeautosyncprogress) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, const [Rdb_ProgressObserver](_rdb___progress_observer.md) \*observer) | Unsubscribes from the automatic sync process of an RDB store. | 143e41f4b71Sopenharmony_ci| int [OH_Rdb_LockRow](#oh_rdb_lockrow) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, [OH_Predicates](_o_h___predicates.md) \*predicates) | Locks data in an RDB store based on specified conditions. The locked data will be blocked from the device-cloud sync. | 144e41f4b71Sopenharmony_ci| int [OH_Rdb_UnlockRow](#oh_rdb_unlockrow) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, [OH_Predicates](_o_h___predicates.md) \*predicates) | Unlocks data in an RDB store based on the specified conditions. | 145e41f4b71Sopenharmony_ci| [OH_Cursor](_o_h___cursor.md) \* [OH_Rdb_QueryLockedRow](#oh_rdb_querylockedrow) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, [OH_Predicates](_o_h___predicates.md) \*predicates, const char \*const \*columnNames, int length) | Queries the locked data in an RDB store. | 146e41f4b71Sopenharmony_ci 147e41f4b71Sopenharmony_ci### Variables 148e41f4b71Sopenharmony_ci 149e41f4b71Sopenharmony_ci| Name | Description | 150e41f4b71Sopenharmony_ci| -------- | -------- | 151e41f4b71Sopenharmony_ci| [OH_Cursor::id](#id-15) | Unique identifier of the **OH_Cursor** struct. | 152e41f4b71Sopenharmony_ci| [OH_Cursor::getColumnCount](#getcolumncount) | Pointer to the function used to obtain the number of columns in the result set. | 153e41f4b71Sopenharmony_ci| [OH_Cursor::getColumnType](#getcolumntype) | Pointer to the function used to obtain the column type based on the specified column index. | 154e41f4b71Sopenharmony_ci| [OH_Cursor::getColumnIndex](#getcolumnindex) | Pointer to the function used to obtain the column index based on the specified column name. | 155e41f4b71Sopenharmony_ci| [OH_Cursor::getColumnName](#getcolumnname) | Pointer to the function used to obtain the column name based on the specified column index. | 156e41f4b71Sopenharmony_ci| [OH_Cursor::getRowCount](#getrowcount) | Pointer to the function used to obtain the number of rows in the result set. | 157e41f4b71Sopenharmony_ci| [OH_Cursor::goToNextRow](#gotonextrow) | Pointer to the function used to go to the next row of the result set. | 158e41f4b71Sopenharmony_ci| [OH_Cursor::getSize](#getsize) | Pointer to the function used to obtain information about the memory required when the column data type in the result set is **BLOB** or **TEXT**. | 159e41f4b71Sopenharmony_ci| [OH_Cursor::getText](#gettext) | Pointer to the function used to obtain the value of the string type based on the specified column and the current row. | 160e41f4b71Sopenharmony_ci| [OH_Cursor::getInt64](#getint64) | Pointer to the function used to obtain the value of the int64_t type based on the specified column and the current row. | 161e41f4b71Sopenharmony_ci| [OH_Cursor::getReal](#getreal) | Pointer to the function used to obtain the value of the double type based on the specified column and the current row. | 162e41f4b71Sopenharmony_ci| [OH_Cursor::getBlob](#getblob) | Pointer to the function used to obtain the values in the form of a byte array based on the specified column and the current row. | 163e41f4b71Sopenharmony_ci| [OH_Cursor::isNull](#isnull-12) | Pointer to the function used to check whether the value in the specified column is null. | 164e41f4b71Sopenharmony_ci| [OH_Cursor::destroy](#destroy-14) | Pointer to the function used to destroy a result set. | 165e41f4b71Sopenharmony_ci| [OH_Cursor::getAsset](#getasset) | Pointer to the function used to obtain the value of the asset type based on the specified column and the current row. | 166e41f4b71Sopenharmony_ci| [OH_Cursor::getAssets](#getassets) | Pointer to the function used to obtain the values in the form of an asset array based on the specified column and the current row. | 167e41f4b71Sopenharmony_ci| [OH_Predicates::id](#id-25) | Unique identifier of the **OH_Predicates** struct. | 168e41f4b71Sopenharmony_ci| [OH_Predicates::equalTo](#equalto) | Pointer to the function used to set a predicates object to match the field whose value is equal to the specified value. | 169e41f4b71Sopenharmony_ci| [OH_Predicates::notEqualTo](#notequalto) | Pointer to the function used to set a predicates object to match the field whose value is not equal to the specified value. | 170e41f4b71Sopenharmony_ci| [OH_Predicates::beginWrap](#beginwrap) | Pointer to the function used to add a left parenthesis to the predicates. | 171e41f4b71Sopenharmony_ci| [OH_Predicates::endWrap](#endwrap) | Pointer to the function used to add a right parenthesis to the predicates. | 172e41f4b71Sopenharmony_ci| [OH_Predicates::orOperate](#oroperate) | Pointer to the function used to add the OR operator to the predicates. | 173e41f4b71Sopenharmony_ci| [OH_Predicates::andOperate](#andoperate) | Pointer to the function used to add the AND operator to the predicates. | 174e41f4b71Sopenharmony_ci| [OH_Predicates::isNull](#isnull-22) | Pointer to the function used to set a predicates object to match the field whose value is null. | 175e41f4b71Sopenharmony_ci| [OH_Predicates::isNotNull](#isnotnull) | Pointer to the function used to set a predicates object to match the field whose value is not null. | 176e41f4b71Sopenharmony_ci| [OH_Predicates::like](#like) | Pointer to the function used to set a predicates object to match a string that is similar to the specified value. | 177e41f4b71Sopenharmony_ci| [OH_Predicates::between](#between) | Pointer to the function used to set a predicates object to match the field whose value is within the specified range. | 178e41f4b71Sopenharmony_ci| [OH_Predicates::notBetween](#notbetween) | Pointer to the function used to set a predicates object to match the field whose value is out of the specified range. | 179e41f4b71Sopenharmony_ci| [OH_Predicates::greaterThan](#greaterthan) | Pointer to the function used to set a predicates object to match the field with value greater than the specified value. | 180e41f4b71Sopenharmony_ci| [OH_Predicates::lessThan](#lessthan) | Pointer to the function used to set a predicates object to match the field with value less than the specified value. | 181e41f4b71Sopenharmony_ci| [OH_Predicates::greaterThanOrEqualTo](#greaterthanorequalto) | Pointer to the function used to set a predicates object to match the field with value greater than or equal to the specified value. | 182e41f4b71Sopenharmony_ci| [OH_Predicates::lessThanOrEqualTo](#lessthanorequalto) | Pointer to the function used to set a predicates object to match the field with value less than or equal to the specified value. | 183e41f4b71Sopenharmony_ci| [OH_Predicates::orderBy](#orderby) | Pointer to the function used to set a predicates object to sort the values in a column in ascending or descending order. | 184e41f4b71Sopenharmony_ci| [OH_Predicates::distinct](#distinct) | Pointer to the function used to set a predicates object to filter out duplicate records. | 185e41f4b71Sopenharmony_ci| [OH_Predicates::limit](#limit) | Pointer to the function used to set a predicates object to specify the maximum number of records. | 186e41f4b71Sopenharmony_ci| [OH_Predicates::offset](#offset) | Pointer to the function used to set a predicates object to specify the start position of the returned result. | 187e41f4b71Sopenharmony_ci| [OH_Predicates::groupBy](#groupby) | Pointer to the function used to set a predicates object to group rows that have the same value into summary rows. | 188e41f4b71Sopenharmony_ci| [OH_Predicates::in](#in) | Pointer to the function used to set a predicates object to match the field with the value within the specified range. | 189e41f4b71Sopenharmony_ci| [OH_Predicates::notIn](#notin) | Pointer to the function used to set a predicates object to match the field with the value out of the specified range. | 190e41f4b71Sopenharmony_ci| [OH_Predicates::clear](#clear-12) | Pointer to the function used to clear a predicates instance. | 191e41f4b71Sopenharmony_ci| [OH_Predicates::destroy](#destroy-24) | Pointer to the function used to destroy an [OH_Predicates](_o_h___predicates.md) object to reclaim the memory occupied. | 192e41f4b71Sopenharmony_ci| [OH_VObject::id](#id-35) | Unique identifier of the **OH_VObject** struct. | 193e41f4b71Sopenharmony_ci| [OH_VObject::putInt64](#putint64-22) | Pointer to the function used to convert a single parameter or an array of the int64 type into a value of the [OH_VObject](_o_h___v_object.md) type. | 194e41f4b71Sopenharmony_ci| [OH_VObject::putDouble](#putdouble) | Pointer to the function used to convert a single parameter or an array of the double type into a value of the [OH_VObject](_o_h___v_object.md) type. | 195e41f4b71Sopenharmony_ci| [OH_VObject::putText](#puttext-22) | Pointer to the function used to convert a character array of the char type to a value of the [OH_VObject](_o_h___v_object.md) type. | 196e41f4b71Sopenharmony_ci| [OH_VObject::putTexts](#puttexts) | Pointer to the function used to convert a string array of the char type to a value of the [OH_VObject](_o_h___v_object.md) type. | 197e41f4b71Sopenharmony_ci| [OH_VObject::destroy](#destroy-44) | Pointer to the function used to destroy an [OH_VObject](_o_h___v_object.md) object to reclaim the memory occupied. | 198e41f4b71Sopenharmony_ci| [OH_VBucket::id](#id-45) | Unique identifier of the **OH_VBucket** struct. | 199e41f4b71Sopenharmony_ci| [OH_VBucket::capability](#capability) | Number of the KV pairs in the struct. | 200e41f4b71Sopenharmony_ci| [OH_VBucket::putText](#puttext-12) | Pointer to the function used to put a char value into the [OH_VBucket](_o_h___v_bucket.md) object in the given column. | 201e41f4b71Sopenharmony_ci| [OH_VBucket::putInt64](#putint64-12) | Pointer to the function used to put an int64_t value into the [OH_VBucket](_o_h___v_bucket.md) object in the given column. | 202e41f4b71Sopenharmony_ci| [OH_VBucket::putReal](#putreal) | Pointer to the function used to put a double value into the {OH_VBucket} object in the given column.| 203e41f4b71Sopenharmony_ci| [OH_VBucket::putBlob](#putblob) | Pointer to the function used to put a const uint8_t value into the [OH_VBucket](_o_h___v_bucket.md) object in the given column. | 204e41f4b71Sopenharmony_ci| [OH_VBucket::putNull](#putnull) | Pointer to the function used to put a null value into the [OH_VBucket](_o_h___v_bucket.md) object in the given column. | 205e41f4b71Sopenharmony_ci| [OH_VBucket::clear](#clear-22) | Pointer to the function used to clear an [OH_VBucket](_o_h___v_bucket.md) object. | 206e41f4b71Sopenharmony_ci| [OH_VBucket::destroy](#destroy-34) | Pointer to the function used to destroy an [OH_VBucket](_o_h___v_bucket.md) object to reclaim the memory occupied. | 207e41f4b71Sopenharmony_ci| [OH_Rdb_Config::selfSize](#selfsize) | Size of the struct. | 208e41f4b71Sopenharmony_ci| [OH_Rdb_Config::dataBaseDir](#databasedir) | Path of the database file. | 209e41f4b71Sopenharmony_ci| [OH_Rdb_Config::storeName](#storename) | Name of the RDB store. | 210e41f4b71Sopenharmony_ci| [OH_Rdb_Config::bundleName](#bundlename) | Bundle name. | 211e41f4b71Sopenharmony_ci| [OH_Rdb_Config::moduleName](#modulename) | Module name. | 212e41f4b71Sopenharmony_ci| [OH_Rdb_Config::isEncrypt](#isencrypt) | Whether to encrypt the RDB store. | 213e41f4b71Sopenharmony_ci| [OH_Rdb_Config::securityLevel](#securitylevel) | RDB store security level. For details, see [OH_Rdb_SecurityLevel](#oh_rdb_securitylevel). | 214e41f4b71Sopenharmony_ci| [OH_Rdb_Config::area](#area) | Security area level. For details, see [Rdb_SecurityArea](#rdb_securityarea). | 215e41f4b71Sopenharmony_ci| [OH_Rdb_Store::id](#id-55) | Unique identifier of the **OH_Rdb_Store** struct. | 216e41f4b71Sopenharmony_ci| [Rdb_DistributedConfig::version](#version-13) | Version of the **Rdb_DistributedConfig** struct. | 217e41f4b71Sopenharmony_ci| [Rdb_DistributedConfig::isAutoSync](#isautosync) | Whether the table supports automatic sync. | 218e41f4b71Sopenharmony_ci| [Rdb_KeyInfo::count](#count) | Number of the changed primary keys or row numbers. | 219e41f4b71Sopenharmony_ci| [Rdb_KeyInfo::type](#type) | Type ([OH_ColumnType](#oh_columntype)) of the primary key. | 220e41f4b71Sopenharmony_ci| [Rdb_KeyInfo::Rdb_KeyData::integer](#integer) | Data of the uint64_t type. | 221e41f4b71Sopenharmony_ci| [Rdb_KeyInfo::Rdb_KeyData::real](#real) | Data of the double type. | 222e41f4b71Sopenharmony_ci| [Rdb_KeyInfo::Rdb_KeyData::text](#text) | Data of the char \* type. | 223e41f4b71Sopenharmony_ci| [Rdb_KeyInfo::data](_rdb___key_info.md#member-variables) | Changed data. | 224e41f4b71Sopenharmony_ci| [Rdb_ChangeInfo::version](#version-23) | Version of the **Rdb_DistributedConfig** struct. | 225e41f4b71Sopenharmony_ci| [Rdb_ChangeInfo::tableName](#tablename) | Name of the table with data changes. | 226e41f4b71Sopenharmony_ci| [Rdb_ChangeInfo::ChangeType](#changetype) | Type of the data changed, which can be data or asset. | 227e41f4b71Sopenharmony_ci| [Rdb_ChangeInfo::inserted](#inserted) | Location where data is inserted. If the primary key of the table is of the string type, the value is the value of the primary key. Otherwise, the value is the row number of the inserted data. | 228e41f4b71Sopenharmony_ci| [Rdb_ChangeInfo::updated](#updated) | Location where data is updated. If the primary key of the table is of the string type, the value is the value of the primary key. Otherwise, the value is the row number of the updated data. | 229e41f4b71Sopenharmony_ci| [Rdb_ChangeInfo::deleted](#deleted) | Location where data is deleted. If the primary key of the table is of the string type, the value is the value of the primary key. Otherwise, the value is the row number of the deleted data. | 230e41f4b71Sopenharmony_ci| [Rdb_SubscribeCallback::detailsObserver](#detailsobserver) | Callback used to return the details about the device-cloud data change. | 231e41f4b71Sopenharmony_ci| [Rdb_SubscribeCallback::briefObserver](#briefobserver) | Callback used to return the device-cloud data change event. | 232e41f4b71Sopenharmony_ci| [Rdb_DataObserver::context](#context-12) | Context of the data observer. | 233e41f4b71Sopenharmony_ci| [Rdb_DataObserver::callback](#callback-12) | Callback used to return the result.| 234e41f4b71Sopenharmony_ci| [Rdb_Statistic::total](#total) | Total number of rows to be synchronized between the device and cloud in the database table. | 235e41f4b71Sopenharmony_ci| [Rdb_Statistic::successful](#successful) | Number of rows that are successfully synchronized between the device and cloud in the database table. | 236e41f4b71Sopenharmony_ci| [Rdb_Statistic::failed](#failed) | Number of rows that failed to be synchronized between the device and cloud in the database table. | 237e41f4b71Sopenharmony_ci| [Rdb_Statistic::remained](#remained) | Number of rows that are not executed for device-cloud sync in the database table. | 238e41f4b71Sopenharmony_ci| [Rdb_TableDetails::table](#table) | Database table name. | 239e41f4b71Sopenharmony_ci| [Rdb_TableDetails::upload](#upload) | Statistics of the device-cloud upload tasks. | 240e41f4b71Sopenharmony_ci| [Rdb_TableDetails::download](#download) | Statistics of the device-cloud download tasks. | 241e41f4b71Sopenharmony_ci| [Rdb_ProgressDetails::version](#version-33) | Version of the **OH_TableDetails** struct. | 242e41f4b71Sopenharmony_ci| [Rdb_ProgressDetails::schedule](#schedule) | Device-cloud sync process. | 243e41f4b71Sopenharmony_ci| [Rdb_ProgressDetails::code](#code) | Device-cloud sync state. | 244e41f4b71Sopenharmony_ci| [Rdb_ProgressDetails::tableLength](#tablelength) | Number of the tables synchronized between the device and cloud. | 245e41f4b71Sopenharmony_ci| [Rdb_ProgressObserver::context](#context-22) | Context of the device-cloud sync progress observer. | 246e41f4b71Sopenharmony_ci| [Rdb_ProgressObserver::callback](#callback-22) | Callback used to return the device-cloud sync progress.| 247e41f4b71Sopenharmony_ci 248e41f4b71Sopenharmony_ci 249e41f4b71Sopenharmony_ci## Macro Description 250e41f4b71Sopenharmony_ci 251e41f4b71Sopenharmony_ci 252e41f4b71Sopenharmony_ci### DISTRIBUTED_CHANGE_INFO_VERSION 253e41f4b71Sopenharmony_ci 254e41f4b71Sopenharmony_ci``` 255e41f4b71Sopenharmony_ci#define DISTRIBUTED_CHANGE_INFO_VERSION 1 256e41f4b71Sopenharmony_ci``` 257e41f4b71Sopenharmony_ci 258e41f4b71Sopenharmony_ci**Description** 259e41f4b71Sopenharmony_ci 260e41f4b71Sopenharmony_ciVersion of [Rdb_ChangeInfo](_rdb___change_info.md). 261e41f4b71Sopenharmony_ci 262e41f4b71Sopenharmony_ci**Since**: 11 263e41f4b71Sopenharmony_ci 264e41f4b71Sopenharmony_ci 265e41f4b71Sopenharmony_ci### DISTRIBUTED_CONFIG_VERSION 266e41f4b71Sopenharmony_ci 267e41f4b71Sopenharmony_ci``` 268e41f4b71Sopenharmony_ci#define DISTRIBUTED_CONFIG_VERSION 1 269e41f4b71Sopenharmony_ci``` 270e41f4b71Sopenharmony_ci 271e41f4b71Sopenharmony_ci**Description** 272e41f4b71Sopenharmony_ci 273e41f4b71Sopenharmony_ciVersion of [Rdb_DistributedConfig](_rdb___distributed_config.md). 274e41f4b71Sopenharmony_ci 275e41f4b71Sopenharmony_ci**Since**: 11 276e41f4b71Sopenharmony_ci 277e41f4b71Sopenharmony_ci 278e41f4b71Sopenharmony_ci### DISTRIBUTED_PROGRESS_DETAIL_VERSION 279e41f4b71Sopenharmony_ci 280e41f4b71Sopenharmony_ci``` 281e41f4b71Sopenharmony_ci#define DISTRIBUTED_PROGRESS_DETAIL_VERSION 1 282e41f4b71Sopenharmony_ci``` 283e41f4b71Sopenharmony_ci 284e41f4b71Sopenharmony_ci**Description** 285e41f4b71Sopenharmony_ci 286e41f4b71Sopenharmony_ciVersion of **OH_ProgressDetails**. 287e41f4b71Sopenharmony_ci 288e41f4b71Sopenharmony_ci**Since**: 11 289e41f4b71Sopenharmony_ci 290e41f4b71Sopenharmony_ci 291e41f4b71Sopenharmony_ci## Type Description 292e41f4b71Sopenharmony_ci 293e41f4b71Sopenharmony_ci 294e41f4b71Sopenharmony_ci### OH_ColumnType 295e41f4b71Sopenharmony_ci 296e41f4b71Sopenharmony_ci``` 297e41f4b71Sopenharmony_citypedef enum OH_ColumnType OH_ColumnType 298e41f4b71Sopenharmony_ci``` 299e41f4b71Sopenharmony_ci 300e41f4b71Sopenharmony_ci**Description** 301e41f4b71Sopenharmony_ci 302e41f4b71Sopenharmony_ciDefines an enum for the types of the fields in an RDB store. 303e41f4b71Sopenharmony_ci 304e41f4b71Sopenharmony_ci**Since**: 10 305e41f4b71Sopenharmony_ci 306e41f4b71Sopenharmony_ci 307e41f4b71Sopenharmony_ci### OH_Cursor 308e41f4b71Sopenharmony_ci 309e41f4b71Sopenharmony_ci``` 310e41f4b71Sopenharmony_citypedef struct OH_Cursor OH_Cursor 311e41f4b71Sopenharmony_ci``` 312e41f4b71Sopenharmony_ci 313e41f4b71Sopenharmony_ci**Description** 314e41f4b71Sopenharmony_ci 315e41f4b71Sopenharmony_ciDefines a struct for a result set. 316e41f4b71Sopenharmony_ci 317e41f4b71Sopenharmony_ciAPIs are provided to access the result set obtained by querying the RDB store. 318e41f4b71Sopenharmony_ci 319e41f4b71Sopenharmony_ci**Since**: 10 320e41f4b71Sopenharmony_ci 321e41f4b71Sopenharmony_ci 322e41f4b71Sopenharmony_ci### OH_OrderType 323e41f4b71Sopenharmony_ci 324e41f4b71Sopenharmony_ci``` 325e41f4b71Sopenharmony_citypedef enum OH_OrderType OH_OrderType 326e41f4b71Sopenharmony_ci``` 327e41f4b71Sopenharmony_ci 328e41f4b71Sopenharmony_ci**Description** 329e41f4b71Sopenharmony_ci 330e41f4b71Sopenharmony_ciDefines an enum for sorting types. 331e41f4b71Sopenharmony_ci 332e41f4b71Sopenharmony_ci**Since**: 10 333e41f4b71Sopenharmony_ci 334e41f4b71Sopenharmony_ci 335e41f4b71Sopenharmony_ci### OH_Predicates 336e41f4b71Sopenharmony_ci 337e41f4b71Sopenharmony_ci``` 338e41f4b71Sopenharmony_citypedef struct OH_Predicates OH_Predicates 339e41f4b71Sopenharmony_ci``` 340e41f4b71Sopenharmony_ci 341e41f4b71Sopenharmony_ci**Description** 342e41f4b71Sopenharmony_ci 343e41f4b71Sopenharmony_ciDefines a **predicates** object. 344e41f4b71Sopenharmony_ci 345e41f4b71Sopenharmony_ci**Since**: 10 346e41f4b71Sopenharmony_ci 347e41f4b71Sopenharmony_ci 348e41f4b71Sopenharmony_ci### OH_Rdb_ErrCode 349e41f4b71Sopenharmony_ci 350e41f4b71Sopenharmony_ci``` 351e41f4b71Sopenharmony_citypedef enum OH_Rdb_ErrCode OH_Rdb_ErrCode 352e41f4b71Sopenharmony_ci``` 353e41f4b71Sopenharmony_ci 354e41f4b71Sopenharmony_ci**Description** 355e41f4b71Sopenharmony_ci 356e41f4b71Sopenharmony_ciDefines an enum for error codes. 357e41f4b71Sopenharmony_ci 358e41f4b71Sopenharmony_ci**Since**: 10 359e41f4b71Sopenharmony_ci 360e41f4b71Sopenharmony_ci 361e41f4b71Sopenharmony_ci### OH_Rdb_SecurityLevel 362e41f4b71Sopenharmony_ci 363e41f4b71Sopenharmony_ci``` 364e41f4b71Sopenharmony_citypedef enum OH_Rdb_SecurityLevel OH_Rdb_SecurityLevel 365e41f4b71Sopenharmony_ci``` 366e41f4b71Sopenharmony_ci 367e41f4b71Sopenharmony_ci**Description** 368e41f4b71Sopenharmony_ci 369e41f4b71Sopenharmony_ciDefines an enum for RDB store security levels. 370e41f4b71Sopenharmony_ci 371e41f4b71Sopenharmony_ci**Since**: 10 372e41f4b71Sopenharmony_ci 373e41f4b71Sopenharmony_ci 374e41f4b71Sopenharmony_ci### OH_VBucket 375e41f4b71Sopenharmony_ci 376e41f4b71Sopenharmony_ci``` 377e41f4b71Sopenharmony_citypedef struct OH_VBucket OH_VBucket 378e41f4b71Sopenharmony_ci``` 379e41f4b71Sopenharmony_ci 380e41f4b71Sopenharmony_ci**Description** 381e41f4b71Sopenharmony_ci 382e41f4b71Sopenharmony_ciDefines a struct for the types of the key and value in a KV pair. 383e41f4b71Sopenharmony_ci 384e41f4b71Sopenharmony_ci**Since**: 10 385e41f4b71Sopenharmony_ci 386e41f4b71Sopenharmony_ci 387e41f4b71Sopenharmony_ci### OH_VObject 388e41f4b71Sopenharmony_ci 389e41f4b71Sopenharmony_ci``` 390e41f4b71Sopenharmony_citypedef struct OH_VObject OH_VObject 391e41f4b71Sopenharmony_ci``` 392e41f4b71Sopenharmony_ci 393e41f4b71Sopenharmony_ci**Description** 394e41f4b71Sopenharmony_ci 395e41f4b71Sopenharmony_ciDefines a struct for allowed data types. 396e41f4b71Sopenharmony_ci 397e41f4b71Sopenharmony_ci**Since**: 10 398e41f4b71Sopenharmony_ci 399e41f4b71Sopenharmony_ci 400e41f4b71Sopenharmony_ci### Rdb_BriefObserver 401e41f4b71Sopenharmony_ci 402e41f4b71Sopenharmony_ci``` 403e41f4b71Sopenharmony_citypedef void(* Rdb_BriefObserver) (void *context, const char *values[], uint32_t count) 404e41f4b71Sopenharmony_ci``` 405e41f4b71Sopenharmony_ci 406e41f4b71Sopenharmony_ci**Description** 407e41f4b71Sopenharmony_ci 408e41f4b71Sopenharmony_ciDefines a callback used to return the device-cloud data change event. 409e41f4b71Sopenharmony_ci 410e41f4b71Sopenharmony_ci**Since**: 11 411e41f4b71Sopenharmony_ci 412e41f4b71Sopenharmony_ci**Parameters** 413e41f4b71Sopenharmony_ci 414e41f4b71Sopenharmony_ci| Name | Description | 415e41f4b71Sopenharmony_ci| -------- | -------- | 416e41f4b71Sopenharmony_ci| context | Pointer to the context of the data observer. | 417e41f4b71Sopenharmony_ci| values | Pointer to the accounts whose device-cloud data is changed.| 418e41f4b71Sopenharmony_ci| count | Number of accounts whose device-cloud data is changed.| 419e41f4b71Sopenharmony_ci 420e41f4b71Sopenharmony_ci 421e41f4b71Sopenharmony_ci### Rdb_ChangeInfo 422e41f4b71Sopenharmony_ci 423e41f4b71Sopenharmony_ci``` 424e41f4b71Sopenharmony_citypedef struct Rdb_ChangeInfo Rdb_ChangeInfo 425e41f4b71Sopenharmony_ci``` 426e41f4b71Sopenharmony_ci 427e41f4b71Sopenharmony_ci**Description** 428e41f4b71Sopenharmony_ci 429e41f4b71Sopenharmony_ciDefines a struct for the details about the device-cloud sync process. 430e41f4b71Sopenharmony_ci 431e41f4b71Sopenharmony_ci**Since**: 11 432e41f4b71Sopenharmony_ci 433e41f4b71Sopenharmony_ci 434e41f4b71Sopenharmony_ci### Rdb_ChangeType 435e41f4b71Sopenharmony_ci 436e41f4b71Sopenharmony_ci``` 437e41f4b71Sopenharmony_citypedef enum Rdb_ChangeType Rdb_ChangeType 438e41f4b71Sopenharmony_ci``` 439e41f4b71Sopenharmony_ci 440e41f4b71Sopenharmony_ci**Description** 441e41f4b71Sopenharmony_ci 442e41f4b71Sopenharmony_ciDefines an enum for data change types. 443e41f4b71Sopenharmony_ci 444e41f4b71Sopenharmony_ci**Since**: 11 445e41f4b71Sopenharmony_ci 446e41f4b71Sopenharmony_ci 447e41f4b71Sopenharmony_ci### Rdb_DataObserver 448e41f4b71Sopenharmony_ci 449e41f4b71Sopenharmony_ci``` 450e41f4b71Sopenharmony_citypedef struct Rdb_DataObserver Rdb_DataObserver 451e41f4b71Sopenharmony_ci``` 452e41f4b71Sopenharmony_ci 453e41f4b71Sopenharmony_ci**Description** 454e41f4b71Sopenharmony_ci 455e41f4b71Sopenharmony_ciDefines a struct for the data observer. 456e41f4b71Sopenharmony_ci 457e41f4b71Sopenharmony_ci**Since**: 11 458e41f4b71Sopenharmony_ci 459e41f4b71Sopenharmony_ci 460e41f4b71Sopenharmony_ci### Rdb_DetailsObserver 461e41f4b71Sopenharmony_ci 462e41f4b71Sopenharmony_ci``` 463e41f4b71Sopenharmony_citypedef void(* Rdb_DetailsObserver) (void *context, const Rdb_ChangeInfo **changeInfo, uint32_t count) 464e41f4b71Sopenharmony_ci``` 465e41f4b71Sopenharmony_ci 466e41f4b71Sopenharmony_ci**Description** 467e41f4b71Sopenharmony_ci 468e41f4b71Sopenharmony_ciDefines a callback used to return the details about the device-cloud data change. 469e41f4b71Sopenharmony_ci 470e41f4b71Sopenharmony_ci**Since**: 11 471e41f4b71Sopenharmony_ci 472e41f4b71Sopenharmony_ci**Parameters** 473e41f4b71Sopenharmony_ci 474e41f4b71Sopenharmony_ci| Name | Description | 475e41f4b71Sopenharmony_ci| -------- | -------- | 476e41f4b71Sopenharmony_ci| context | Pointer to the context of the data observer. | 477e41f4b71Sopenharmony_ci| changeInfo | Pointer to [Rdb_ChangeInfo](_rdb___change_info.md). | 478e41f4b71Sopenharmony_ci| count | Number of changed tables. | 479e41f4b71Sopenharmony_ci 480e41f4b71Sopenharmony_ci**See** 481e41f4b71Sopenharmony_ci 482e41f4b71Sopenharmony_ci[Rdb_ChangeInfo](_rdb___change_info.md). 483e41f4b71Sopenharmony_ci 484e41f4b71Sopenharmony_ci 485e41f4b71Sopenharmony_ci### Rdb_DistributedConfig 486e41f4b71Sopenharmony_ci 487e41f4b71Sopenharmony_ci``` 488e41f4b71Sopenharmony_citypedef struct Rdb_DistributedConfig Rdb_DistributedConfig 489e41f4b71Sopenharmony_ci``` 490e41f4b71Sopenharmony_ci 491e41f4b71Sopenharmony_ci**Description** 492e41f4b71Sopenharmony_ci 493e41f4b71Sopenharmony_ciDefines a struct for distributed configuration of a table. 494e41f4b71Sopenharmony_ci 495e41f4b71Sopenharmony_ci**Since**: 11 496e41f4b71Sopenharmony_ci 497e41f4b71Sopenharmony_ci 498e41f4b71Sopenharmony_ci### Rdb_DistributedType 499e41f4b71Sopenharmony_ci 500e41f4b71Sopenharmony_ci``` 501e41f4b71Sopenharmony_citypedef enum Rdb_DistributedType Rdb_DistributedType 502e41f4b71Sopenharmony_ci``` 503e41f4b71Sopenharmony_ci 504e41f4b71Sopenharmony_ci**Description** 505e41f4b71Sopenharmony_ci 506e41f4b71Sopenharmony_ciDefines an enum for distributed types. 507e41f4b71Sopenharmony_ci 508e41f4b71Sopenharmony_ci**Since**: 11 509e41f4b71Sopenharmony_ci 510e41f4b71Sopenharmony_ci 511e41f4b71Sopenharmony_ci### Rdb_KeyInfo 512e41f4b71Sopenharmony_ci 513e41f4b71Sopenharmony_ci``` 514e41f4b71Sopenharmony_citypedef struct Rdb_KeyInfo Rdb_KeyInfo 515e41f4b71Sopenharmony_ci``` 516e41f4b71Sopenharmony_ci 517e41f4b71Sopenharmony_ci**Description** 518e41f4b71Sopenharmony_ci 519e41f4b71Sopenharmony_ciDefines a struct for the primary key or row number of the row that changes. 520e41f4b71Sopenharmony_ci 521e41f4b71Sopenharmony_ci**Since**: 11 522e41f4b71Sopenharmony_ci 523e41f4b71Sopenharmony_ci 524e41f4b71Sopenharmony_ci### Rdb_Progress 525e41f4b71Sopenharmony_ci 526e41f4b71Sopenharmony_ci``` 527e41f4b71Sopenharmony_citypedef enum Rdb_Progress Rdb_Progress 528e41f4b71Sopenharmony_ci``` 529e41f4b71Sopenharmony_ci 530e41f4b71Sopenharmony_ci**Description** 531e41f4b71Sopenharmony_ci 532e41f4b71Sopenharmony_ciDefines an enum for device-cloud sync progresses. 533e41f4b71Sopenharmony_ci 534e41f4b71Sopenharmony_ci**Since**: 11 535e41f4b71Sopenharmony_ci 536e41f4b71Sopenharmony_ci 537e41f4b71Sopenharmony_ci### Rdb_ProgressCallback 538e41f4b71Sopenharmony_ci 539e41f4b71Sopenharmony_ci``` 540e41f4b71Sopenharmony_citypedef void(* Rdb_ProgressCallback) (void *context, Rdb_ProgressDetails *progressDetails) 541e41f4b71Sopenharmony_ci``` 542e41f4b71Sopenharmony_ci 543e41f4b71Sopenharmony_ci**Description** 544e41f4b71Sopenharmony_ci 545e41f4b71Sopenharmony_ciDefines a callback used to return the device-cloud sync progress. 546e41f4b71Sopenharmony_ci 547e41f4b71Sopenharmony_ci**Since**: 11 548e41f4b71Sopenharmony_ci 549e41f4b71Sopenharmony_ci**Parameters** 550e41f4b71Sopenharmony_ci 551e41f4b71Sopenharmony_ci| Name | Description | 552e41f4b71Sopenharmony_ci| -------- | -------- | 553e41f4b71Sopenharmony_ci| progressDetails | Details about the device-cloud sync progress. | 554e41f4b71Sopenharmony_ci 555e41f4b71Sopenharmony_ci**See** 556e41f4b71Sopenharmony_ci 557e41f4b71Sopenharmony_ci[Rdb_ProgressDetails](_rdb___progress_details.md). 558e41f4b71Sopenharmony_ci 559e41f4b71Sopenharmony_ci 560e41f4b71Sopenharmony_ci### Rdb_ProgressCode 561e41f4b71Sopenharmony_ci 562e41f4b71Sopenharmony_ci``` 563e41f4b71Sopenharmony_citypedef enum Rdb_ProgressCode Rdb_ProgressCode 564e41f4b71Sopenharmony_ci``` 565e41f4b71Sopenharmony_ci 566e41f4b71Sopenharmony_ci**Description** 567e41f4b71Sopenharmony_ci 568e41f4b71Sopenharmony_ciDefines an enum for device-cloud sync states. 569e41f4b71Sopenharmony_ci 570e41f4b71Sopenharmony_ci**Since**: 11 571e41f4b71Sopenharmony_ci 572e41f4b71Sopenharmony_ci 573e41f4b71Sopenharmony_ci### Rdb_ProgressDetails 574e41f4b71Sopenharmony_ci 575e41f4b71Sopenharmony_ci``` 576e41f4b71Sopenharmony_citypedef struct Rdb_ProgressDetails Rdb_ProgressDetails 577e41f4b71Sopenharmony_ci``` 578e41f4b71Sopenharmony_ci 579e41f4b71Sopenharmony_ci**Description** 580e41f4b71Sopenharmony_ci 581e41f4b71Sopenharmony_ciDefines a struct for statistics of the overall device-cloud sync (upload and download) tasks of an RDB store. 582e41f4b71Sopenharmony_ci 583e41f4b71Sopenharmony_ci**Since**: 11 584e41f4b71Sopenharmony_ci 585e41f4b71Sopenharmony_ci 586e41f4b71Sopenharmony_ci### Rdb_ProgressObserver 587e41f4b71Sopenharmony_ci 588e41f4b71Sopenharmony_ci``` 589e41f4b71Sopenharmony_citypedef struct Rdb_ProgressObserver Rdb_ProgressObserver 590e41f4b71Sopenharmony_ci``` 591e41f4b71Sopenharmony_ci 592e41f4b71Sopenharmony_ci**Description** 593e41f4b71Sopenharmony_ci 594e41f4b71Sopenharmony_ciDefines a struct for the observer for the device-cloud sync progress. 595e41f4b71Sopenharmony_ci 596e41f4b71Sopenharmony_ci**Since**: 11 597e41f4b71Sopenharmony_ci 598e41f4b71Sopenharmony_ci 599e41f4b71Sopenharmony_ci### Rdb_SecurityArea 600e41f4b71Sopenharmony_ci 601e41f4b71Sopenharmony_ci``` 602e41f4b71Sopenharmony_citypedef enum Rdb_SecurityArea Rdb_SecurityArea 603e41f4b71Sopenharmony_ci``` 604e41f4b71Sopenharmony_ci 605e41f4b71Sopenharmony_ci**Description** 606e41f4b71Sopenharmony_ci 607e41f4b71Sopenharmony_ciDefines an enum for security area levels of an RDB store. 608e41f4b71Sopenharmony_ci 609e41f4b71Sopenharmony_ci**Since**: 11 610e41f4b71Sopenharmony_ci 611e41f4b71Sopenharmony_ci 612e41f4b71Sopenharmony_ci### Rdb_Statistic 613e41f4b71Sopenharmony_ci 614e41f4b71Sopenharmony_ci``` 615e41f4b71Sopenharmony_citypedef struct Rdb_Statistic Rdb_Statistic 616e41f4b71Sopenharmony_ci``` 617e41f4b71Sopenharmony_ci 618e41f4b71Sopenharmony_ci**Description** 619e41f4b71Sopenharmony_ci 620e41f4b71Sopenharmony_ciDefines a struct for the device-cloud sync statistics of a database table. 621e41f4b71Sopenharmony_ci 622e41f4b71Sopenharmony_ci**Since**: 11 623e41f4b71Sopenharmony_ci 624e41f4b71Sopenharmony_ci 625e41f4b71Sopenharmony_ci### Rdb_SubscribeCallback 626e41f4b71Sopenharmony_ci 627e41f4b71Sopenharmony_ci``` 628e41f4b71Sopenharmony_citypedef union Rdb_SubscribeCallback Rdb_SubscribeCallback 629e41f4b71Sopenharmony_ci``` 630e41f4b71Sopenharmony_ci 631e41f4b71Sopenharmony_ci**Description** 632e41f4b71Sopenharmony_ci 633e41f4b71Sopenharmony_ciDefines a callback used to return the subscribed event. 634e41f4b71Sopenharmony_ci 635e41f4b71Sopenharmony_ci**Since**: 11 636e41f4b71Sopenharmony_ci 637e41f4b71Sopenharmony_ci 638e41f4b71Sopenharmony_ci### Rdb_SubscribeType 639e41f4b71Sopenharmony_ci 640e41f4b71Sopenharmony_ci``` 641e41f4b71Sopenharmony_citypedef enum Rdb_SubscribeType Rdb_SubscribeType 642e41f4b71Sopenharmony_ci``` 643e41f4b71Sopenharmony_ci 644e41f4b71Sopenharmony_ci**Description** 645e41f4b71Sopenharmony_ci 646e41f4b71Sopenharmony_ciDefines an enum for subscription types. 647e41f4b71Sopenharmony_ci 648e41f4b71Sopenharmony_ci**Since**: 11 649e41f4b71Sopenharmony_ci 650e41f4b71Sopenharmony_ci 651e41f4b71Sopenharmony_ci### Rdb_SyncCallback 652e41f4b71Sopenharmony_ci 653e41f4b71Sopenharmony_ci``` 654e41f4b71Sopenharmony_citypedef void(* Rdb_SyncCallback) (Rdb_ProgressDetails *progressDetails) 655e41f4b71Sopenharmony_ci``` 656e41f4b71Sopenharmony_ci 657e41f4b71Sopenharmony_ci**Description** 658e41f4b71Sopenharmony_ci 659e41f4b71Sopenharmony_ciDefines a callback for device-cloud sync. 660e41f4b71Sopenharmony_ci 661e41f4b71Sopenharmony_ci**Since**: 11 662e41f4b71Sopenharmony_ci 663e41f4b71Sopenharmony_ci**Parameters** 664e41f4b71Sopenharmony_ci 665e41f4b71Sopenharmony_ci| Name | Description | 666e41f4b71Sopenharmony_ci| -------- | -------- | 667e41f4b71Sopenharmony_ci| progressDetails | Statistics of device-cloud sync. | 668e41f4b71Sopenharmony_ci 669e41f4b71Sopenharmony_ci**See** 670e41f4b71Sopenharmony_ci 671e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 672e41f4b71Sopenharmony_ci 673e41f4b71Sopenharmony_ci 674e41f4b71Sopenharmony_ci### Rdb_SyncMode 675e41f4b71Sopenharmony_ci 676e41f4b71Sopenharmony_ci``` 677e41f4b71Sopenharmony_citypedef enum Rdb_SyncMode Rdb_SyncMode 678e41f4b71Sopenharmony_ci``` 679e41f4b71Sopenharmony_ci 680e41f4b71Sopenharmony_ci**Description** 681e41f4b71Sopenharmony_ci 682e41f4b71Sopenharmony_ciDefines an enum for RDB sync modes. 683e41f4b71Sopenharmony_ci 684e41f4b71Sopenharmony_ci**Since**: 11 685e41f4b71Sopenharmony_ci 686e41f4b71Sopenharmony_ci 687e41f4b71Sopenharmony_ci### Rdb_TableDetails 688e41f4b71Sopenharmony_ci 689e41f4b71Sopenharmony_ci``` 690e41f4b71Sopenharmony_citypedef struct Rdb_TableDetails Rdb_TableDetails 691e41f4b71Sopenharmony_ci``` 692e41f4b71Sopenharmony_ci 693e41f4b71Sopenharmony_ci**Description** 694e41f4b71Sopenharmony_ci 695e41f4b71Sopenharmony_ciDefines a struct for statistics of device-cloud upload and download tasks of a database table. 696e41f4b71Sopenharmony_ci 697e41f4b71Sopenharmony_ci**Since**: 11 698e41f4b71Sopenharmony_ci 699e41f4b71Sopenharmony_ci## Enum Description 700e41f4b71Sopenharmony_ci 701e41f4b71Sopenharmony_ci 702e41f4b71Sopenharmony_ci### OH_ColumnType 703e41f4b71Sopenharmony_ci 704e41f4b71Sopenharmony_ci``` 705e41f4b71Sopenharmony_cienum OH_ColumnType 706e41f4b71Sopenharmony_ci``` 707e41f4b71Sopenharmony_ci 708e41f4b71Sopenharmony_ci**Description** 709e41f4b71Sopenharmony_ci 710e41f4b71Sopenharmony_ciEnumerates the field types in an RDB store. 711e41f4b71Sopenharmony_ci 712e41f4b71Sopenharmony_ci**Since**: 10 713e41f4b71Sopenharmony_ci 714e41f4b71Sopenharmony_ci| Value | Description | 715e41f4b71Sopenharmony_ci| -------- | -------- | 716e41f4b71Sopenharmony_ci| TYPE_NULL | Null. | 717e41f4b71Sopenharmony_ci| TYPE_INT64 | INT64. | 718e41f4b71Sopenharmony_ci| TYPE_REAL | REAL. | 719e41f4b71Sopenharmony_ci| TYPE_TEXT | TEXT. | 720e41f4b71Sopenharmony_ci| TYPE_BLOB | BLOB. | 721e41f4b71Sopenharmony_ci| TYPE_ASSET<sup>11+</sup> | ASSET (asset attachment).<br>This value is supported since API version 11. | 722e41f4b71Sopenharmony_ci| TYPE_ASSETS<sup>11+</sup> | ASSETS (multiple asset attachments).<br>This value is supported since API version 11. | 723e41f4b71Sopenharmony_ci 724e41f4b71Sopenharmony_ci 725e41f4b71Sopenharmony_ci### OH_OrderType 726e41f4b71Sopenharmony_ci 727e41f4b71Sopenharmony_ci``` 728e41f4b71Sopenharmony_cienum OH_OrderType 729e41f4b71Sopenharmony_ci``` 730e41f4b71Sopenharmony_ci 731e41f4b71Sopenharmony_ci**Description** 732e41f4b71Sopenharmony_ci 733e41f4b71Sopenharmony_ciEnumerates the sorting types. 734e41f4b71Sopenharmony_ci 735e41f4b71Sopenharmony_ci**Since**: 10 736e41f4b71Sopenharmony_ci 737e41f4b71Sopenharmony_ci| Value | Description | 738e41f4b71Sopenharmony_ci| -------- | -------- | 739e41f4b71Sopenharmony_ci| ASC | Ascending order. | 740e41f4b71Sopenharmony_ci| DESC | Descending order. | 741e41f4b71Sopenharmony_ci 742e41f4b71Sopenharmony_ci 743e41f4b71Sopenharmony_ci### OH_Rdb_ErrCode 744e41f4b71Sopenharmony_ci 745e41f4b71Sopenharmony_ci``` 746e41f4b71Sopenharmony_cienum OH_Rdb_ErrCode 747e41f4b71Sopenharmony_ci``` 748e41f4b71Sopenharmony_ci 749e41f4b71Sopenharmony_ci**Description** 750e41f4b71Sopenharmony_ci 751e41f4b71Sopenharmony_ciEnumerates the error codes. 752e41f4b71Sopenharmony_ci 753e41f4b71Sopenharmony_ci**Since**: 10 754e41f4b71Sopenharmony_ci 755e41f4b71Sopenharmony_ci| Value | Description | 756e41f4b71Sopenharmony_ci| -------- | -------- | 757e41f4b71Sopenharmony_ci| RDB_ERR | Execution failed. | 758e41f4b71Sopenharmony_ci| RDB_OK | Execution successful. | 759e41f4b71Sopenharmony_ci| E_BASE | Base of the error code. | 760e41f4b71Sopenharmony_ci| RDB_E_NOT_SUPPORTED | The RDB store does not have this capability. | 761e41f4b71Sopenharmony_ci| RDB_E_ERROR | Common exception. | 762e41f4b71Sopenharmony_ci| RDB_E_INVALID_ARGS | Invalid parameter. | 763e41f4b71Sopenharmony_ci| RDB_E_CANNOT_UPDATE_READONLY | Failed to update data because the RDB store is read-only. | 764e41f4b71Sopenharmony_ci| RDB_E_REMOVE_FILE | Failed to delete the file. | 765e41f4b71Sopenharmony_ci| RDB_E_EMPTY_TABLE_NAME | The table name is empty. | 766e41f4b71Sopenharmony_ci| RDB_E_EMPTY_VALUES_BUCKET | The content of the KV pair is empty. | 767e41f4b71Sopenharmony_ci| RDB_E_EXECUTE_IN_STEP_QUERY | The SQL statement executed during the query is incorrect. | 768e41f4b71Sopenharmony_ci| RDB_E_INVALID_COLUMN_INDEX | The column index is invalid. | 769e41f4b71Sopenharmony_ci| RDB_E_INVALID_COLUMN_TYPE | The column type is invalid. | 770e41f4b71Sopenharmony_ci| RDB_E_EMPTY_FILE_NAME | The file name is empty. | 771e41f4b71Sopenharmony_ci| RDB_E_INVALID_FILE_PATH | The file path is invalid. | 772e41f4b71Sopenharmony_ci| RDB_E_TRANSACTION_IN_EXECUTE | Failed to start the transaction. | 773e41f4b71Sopenharmony_ci| RDB_E_INVALID_STATEMENT | Failed to precompile the SQL statements. | 774e41f4b71Sopenharmony_ci| RDB_E_EXECUTE_WRITE_IN_READ_CONNECTION | Failed to perform a write operation in a read connection. | 775e41f4b71Sopenharmony_ci| RDB_E_BEGIN_TRANSACTION_IN_READ_CONNECTION | Failed to start the transaction in a read connection. | 776e41f4b71Sopenharmony_ci| RDB_E_NO_TRANSACTION_IN_SESSION | The transaction to start does not exist in the database session. | 777e41f4b71Sopenharmony_ci| RDB_E_MORE_STEP_QUERY_IN_ONE_SESSION | Multiple queries are executed in a database session. | 778e41f4b71Sopenharmony_ci| RDB_E_NO_ROW_IN_QUERY | The result set does not contain any record. | 779e41f4b71Sopenharmony_ci| RDB_E_INVALID_BIND_ARGS_COUNT | The number of parameters bound in the SQL statement is invalid. | 780e41f4b71Sopenharmony_ci| RDB_E_INVALID_OBJECT_TYPE | The object type is invalid. | 781e41f4b71Sopenharmony_ci| RDB_E_INVALID_CONFLICT_FLAG | The conflict resolution type is invalid. | 782e41f4b71Sopenharmony_ci| RDB_E_HAVING_CLAUSE_NOT_IN_GROUP_BY | The HAVING keyword can be used only after GROUP BY. | 783e41f4b71Sopenharmony_ci| RDB_E_NOT_SUPPORTED_BY_STEP_RESULT_SET | The result set by step is not supported. | 784e41f4b71Sopenharmony_ci| RDB_E_STEP_RESULT_SET_CROSS_THREADS | Failed to obtain the result set. | 785e41f4b71Sopenharmony_ci| RDB_E_STEP_RESULT_QUERY_NOT_EXECUTED | The result set query statement is not executed. | 786e41f4b71Sopenharmony_ci| RDB_E_STEP_RESULT_IS_AFTER_LAST | The cursor of the result set is already in the last row. | 787e41f4b71Sopenharmony_ci| RDB_E_STEP_RESULT_QUERY_EXCEEDED | The number of result set query times exceeds the limit. | 788e41f4b71Sopenharmony_ci| RDB_E_STATEMENT_NOT_PREPARED | The SQL statement is not precompiled. | 789e41f4b71Sopenharmony_ci| RDB_E_EXECUTE_RESULT_INCORRECT | The database execution result is incorrect. | 790e41f4b71Sopenharmony_ci| RDB_E_STEP_RESULT_CLOSED | The result set has been closed. | 791e41f4b71Sopenharmony_ci| RDB_E_RELATIVE_PATH | The file path is a relative path. | 792e41f4b71Sopenharmony_ci| RDB_E_EMPTY_NEW_ENCRYPT_KEY | The new encrypt key is empty. | 793e41f4b71Sopenharmony_ci| RDB_E_CHANGE_UNENCRYPTED_TO_ENCRYPTED | The RDB store is non-encrypted and cannot be changed. | 794e41f4b71Sopenharmony_ci| RDB_E_CHANGE_ENCRYPT_KEY_IN_BUSY | The database does not respond when the database key is updated. | 795e41f4b71Sopenharmony_ci| RDB_E_STEP_STATEMENT_NOT_INIT | The precompiled SQL statement is not initialized. | 796e41f4b71Sopenharmony_ci| RDB_E_NOT_SUPPORTED_ATTACH_IN_WAL_MODE | The WAL mode does not support the ATTACH operation. | 797e41f4b71Sopenharmony_ci| RDB_E_CREATE_FOLDER_FAIL | Failed to create the folder. | 798e41f4b71Sopenharmony_ci| RDB_E_SQLITE_SQL_BUILDER_NORMALIZE_FAIL | Failed to build the SQL statement. | 799e41f4b71Sopenharmony_ci| RDB_E_STORE_SESSION_NOT_GIVE_CONNECTION_TEMPORARILY | The database session does not provide a connection. | 800e41f4b71Sopenharmony_ci| RDB_E_STORE_SESSION_NO_CURRENT_TRANSACTION | The transaction does not exist in the database session. | 801e41f4b71Sopenharmony_ci| RDB_E_NOT_SUPPORT | The current operation is not supported. | 802e41f4b71Sopenharmony_ci| RDB_E_INVALID_PARCEL | The current PARCEL is invalid. | 803e41f4b71Sopenharmony_ci| RDB_E_QUERY_IN_EXECUTE | Failed to execute query. | 804e41f4b71Sopenharmony_ci| RDB_E_SET_PERSIST_WAL | Failed to set the persistence of the database file in WAL mode. | 805e41f4b71Sopenharmony_ci| RDB_E_DB_NOT_EXIST | The database does not exist. | 806e41f4b71Sopenharmony_ci| RDB_E_ARGS_READ_CON_OVERLOAD | The number of read connections to set is greater than the limit. | 807e41f4b71Sopenharmony_ci| RDB_E_WAL_SIZE_OVER_LIMIT | The WAL log file size exceeds the default value. | 808e41f4b71Sopenharmony_ci| RDB_E_CON_OVER_LIMIT | The number of database connections has reached the limit. | 809e41f4b71Sopenharmony_ci 810e41f4b71Sopenharmony_ci 811e41f4b71Sopenharmony_ci### OH_Rdb_SecurityLevel 812e41f4b71Sopenharmony_ci 813e41f4b71Sopenharmony_ci``` 814e41f4b71Sopenharmony_cienum OH_Rdb_SecurityLevel 815e41f4b71Sopenharmony_ci``` 816e41f4b71Sopenharmony_ci 817e41f4b71Sopenharmony_ci**Description** 818e41f4b71Sopenharmony_ci 819e41f4b71Sopenharmony_ciEnumerates the RDB store security levels. 820e41f4b71Sopenharmony_ci 821e41f4b71Sopenharmony_ci**Since**: 10 822e41f4b71Sopenharmony_ci 823e41f4b71Sopenharmony_ci| Value | Description | 824e41f4b71Sopenharmony_ci| -------- | -------- | 825e41f4b71Sopenharmony_ci| S1 | The security level of the RDB store is low.<br>If data leakage occurs, minor impact will be caused. | 826e41f4b71Sopenharmony_ci| S2 | The security level of the RDB store is medium.<br>If data leakage occurs, moderate impact will be caused. | 827e41f4b71Sopenharmony_ci| S3 | The security level of the RDB store is high.<br>If data leakage occurs, major impact will be caused. | 828e41f4b71Sopenharmony_ci| S4 | The security level of the RDB store is critical.<br>If data leakage occurs, critical impact will be caused. | 829e41f4b71Sopenharmony_ci 830e41f4b71Sopenharmony_ci 831e41f4b71Sopenharmony_ci### Rdb_ChangeType 832e41f4b71Sopenharmony_ci 833e41f4b71Sopenharmony_ci``` 834e41f4b71Sopenharmony_cienum Rdb_ChangeType 835e41f4b71Sopenharmony_ci``` 836e41f4b71Sopenharmony_ci 837e41f4b71Sopenharmony_ci**Description** 838e41f4b71Sopenharmony_ci 839e41f4b71Sopenharmony_ciEnumerates the data change types. 840e41f4b71Sopenharmony_ci 841e41f4b71Sopenharmony_ci**Since**: 11 842e41f4b71Sopenharmony_ci 843e41f4b71Sopenharmony_ci| Value | Description | 844e41f4b71Sopenharmony_ci| -------- | -------- | 845e41f4b71Sopenharmony_ci| RDB_DATA_CHANGE | Data change. | 846e41f4b71Sopenharmony_ci| RDB_ASSET_CHANGE | Asset change. | 847e41f4b71Sopenharmony_ci 848e41f4b71Sopenharmony_ci 849e41f4b71Sopenharmony_ci### Rdb_DistributedType 850e41f4b71Sopenharmony_ci 851e41f4b71Sopenharmony_ci``` 852e41f4b71Sopenharmony_cienum Rdb_DistributedType 853e41f4b71Sopenharmony_ci``` 854e41f4b71Sopenharmony_ci 855e41f4b71Sopenharmony_ci**Description** 856e41f4b71Sopenharmony_ci 857e41f4b71Sopenharmony_ciEnumerates the distributed types. 858e41f4b71Sopenharmony_ci 859e41f4b71Sopenharmony_ci**Since**: 11 860e41f4b71Sopenharmony_ci 861e41f4b71Sopenharmony_ci| Value | Description | 862e41f4b71Sopenharmony_ci| -------- | -------- | 863e41f4b71Sopenharmony_ci| RDB_DISTRIBUTED_CLOUD | Distributed database tables for device-cloud sync. | 864e41f4b71Sopenharmony_ci 865e41f4b71Sopenharmony_ci 866e41f4b71Sopenharmony_ci### Rdb_Progress 867e41f4b71Sopenharmony_ci 868e41f4b71Sopenharmony_ci``` 869e41f4b71Sopenharmony_cienum Rdb_Progress 870e41f4b71Sopenharmony_ci``` 871e41f4b71Sopenharmony_ci 872e41f4b71Sopenharmony_ci**Description** 873e41f4b71Sopenharmony_ci 874e41f4b71Sopenharmony_ciEnumerates the device-cloud sync progresses. 875e41f4b71Sopenharmony_ci 876e41f4b71Sopenharmony_ci**Since**: 11 877e41f4b71Sopenharmony_ci 878e41f4b71Sopenharmony_ci| Value | Description | 879e41f4b71Sopenharmony_ci| -------- | -------- | 880e41f4b71Sopenharmony_ci| RDB_SYNC_BEGIN | The device-cloud sync starts. | 881e41f4b71Sopenharmony_ci| RDB_SYNC_IN_PROGRESS | The device-cloud sync is in progress. | 882e41f4b71Sopenharmony_ci| RDB_SYNC_FINISH | The device-cloud sync is finished. | 883e41f4b71Sopenharmony_ci 884e41f4b71Sopenharmony_ci 885e41f4b71Sopenharmony_ci### Rdb_ProgressCode 886e41f4b71Sopenharmony_ci 887e41f4b71Sopenharmony_ci``` 888e41f4b71Sopenharmony_cienum Rdb_ProgressCode 889e41f4b71Sopenharmony_ci``` 890e41f4b71Sopenharmony_ci 891e41f4b71Sopenharmony_ci**Description** 892e41f4b71Sopenharmony_ci 893e41f4b71Sopenharmony_ciEnumerates the device-cloud sync states. 894e41f4b71Sopenharmony_ci 895e41f4b71Sopenharmony_ci**Since**: 11 896e41f4b71Sopenharmony_ci 897e41f4b71Sopenharmony_ci| Value | Description | 898e41f4b71Sopenharmony_ci| -------- | -------- | 899e41f4b71Sopenharmony_ci| RDB_SUCCESS | The device-cloud sync is successful. | 900e41f4b71Sopenharmony_ci| RDB_UNKNOWN_ERROR | An unknown error occurs during the device-cloud sync. | 901e41f4b71Sopenharmony_ci| RDB_NETWORK_ERROR | A network error occurs during the device-cloud sync. | 902e41f4b71Sopenharmony_ci| RDB_CLOUD_DISABLED | The cloud is unavailable. | 903e41f4b71Sopenharmony_ci| RDB_LOCKED_BY_OTHERS | The device-cloud sync of another device is being performed. | 904e41f4b71Sopenharmony_ci| RDB_RECORD_LIMIT_EXCEEDED | The number of records or size of the data to be synchronized exceeds the maximum. The maximum value is configured on the cloud. | 905e41f4b71Sopenharmony_ci| RDB_NO_SPACE_FOR_ASSET | The remaining cloud space is less than the size of the data to be synchronized. | 906e41f4b71Sopenharmony_ci 907e41f4b71Sopenharmony_ci 908e41f4b71Sopenharmony_ci### Rdb_SecurityArea 909e41f4b71Sopenharmony_ci 910e41f4b71Sopenharmony_ci``` 911e41f4b71Sopenharmony_cienum Rdb_SecurityArea 912e41f4b71Sopenharmony_ci``` 913e41f4b71Sopenharmony_ci 914e41f4b71Sopenharmony_ci**Description** 915e41f4b71Sopenharmony_ci 916e41f4b71Sopenharmony_ciEnumerates the security area levels of an RDB store. 917e41f4b71Sopenharmony_ci 918e41f4b71Sopenharmony_ci**Since**: 11 919e41f4b71Sopenharmony_ci 920e41f4b71Sopenharmony_ci| Value | Description | 921e41f4b71Sopenharmony_ci| -------- | -------- | 922e41f4b71Sopenharmony_ci| RDB_SECURITY_AREA_EL1 | Security area level 1. | 923e41f4b71Sopenharmony_ci| RDB_SECURITY_AREA_EL2 | Security area level 2. | 924e41f4b71Sopenharmony_ci| RDB_SECURITY_AREA_EL3 | Security area level 3. | 925e41f4b71Sopenharmony_ci| RDB_SECURITY_AREA_EL4 | Security area level 4. | 926e41f4b71Sopenharmony_ci 927e41f4b71Sopenharmony_ci 928e41f4b71Sopenharmony_ci### Rdb_SubscribeType 929e41f4b71Sopenharmony_ci 930e41f4b71Sopenharmony_ci``` 931e41f4b71Sopenharmony_cienum Rdb_SubscribeType 932e41f4b71Sopenharmony_ci``` 933e41f4b71Sopenharmony_ci 934e41f4b71Sopenharmony_ci**Description** 935e41f4b71Sopenharmony_ci 936e41f4b71Sopenharmony_ciEnumerates the subscription types. 937e41f4b71Sopenharmony_ci 938e41f4b71Sopenharmony_ci**Since**: 11 939e41f4b71Sopenharmony_ci 940e41f4b71Sopenharmony_ci| Value | Description | 941e41f4b71Sopenharmony_ci| -------- | -------- | 942e41f4b71Sopenharmony_ci| RDB_SUBSCRIBE_TYPE_CLOUD | Subscription of cloud data changes. | 943e41f4b71Sopenharmony_ci| RDB_SUBSCRIBE_TYPE_CLOUD_DETAILS | Subscription of cloud data change details. | 944e41f4b71Sopenharmony_ci| RDB_SUBSCRIBE_TYPE_LOCAL_DETAILS<sup>12+</sup> | Subscribe to details of the local data change. This value is available since API version 12. | 945e41f4b71Sopenharmony_ci 946e41f4b71Sopenharmony_ci 947e41f4b71Sopenharmony_ci### Rdb_SyncMode 948e41f4b71Sopenharmony_ci 949e41f4b71Sopenharmony_ci``` 950e41f4b71Sopenharmony_cienum Rdb_SyncMode 951e41f4b71Sopenharmony_ci``` 952e41f4b71Sopenharmony_ci 953e41f4b71Sopenharmony_ci**Description** 954e41f4b71Sopenharmony_ci 955e41f4b71Sopenharmony_ciEnumerates the RDB sync modes. 956e41f4b71Sopenharmony_ci 957e41f4b71Sopenharmony_ci**Since**: 11 958e41f4b71Sopenharmony_ci 959e41f4b71Sopenharmony_ci| Value | Description | 960e41f4b71Sopenharmony_ci| -------- | -------- | 961e41f4b71Sopenharmony_ci| RDB_SYNC_MODE_TIME_FIRST | Synchronize with the data with the latest modification time. | 962e41f4b71Sopenharmony_ci| RDB_SYNC_MODE_NATIVE_FIRST | Synchronize data from a local device to the cloud. | 963e41f4b71Sopenharmony_ci| RDB_SYNC_MODE_CLOUD_FIRST | Synchronize data from the cloud to a local device. | 964e41f4b71Sopenharmony_ci 965e41f4b71Sopenharmony_ci 966e41f4b71Sopenharmony_ci## Function Description 967e41f4b71Sopenharmony_ci 968e41f4b71Sopenharmony_ci 969e41f4b71Sopenharmony_ci### OH_Rdb_Backup() 970e41f4b71Sopenharmony_ci 971e41f4b71Sopenharmony_ci``` 972e41f4b71Sopenharmony_ciint OH_Rdb_Backup (OH_Rdb_Store *store, const char *databasePath ) 973e41f4b71Sopenharmony_ci``` 974e41f4b71Sopenharmony_ci 975e41f4b71Sopenharmony_ci**Description** 976e41f4b71Sopenharmony_ci 977e41f4b71Sopenharmony_ciBacks up an RDB store in the specified directory. 978e41f4b71Sopenharmony_ci 979e41f4b71Sopenharmony_ci**Since**: 10 980e41f4b71Sopenharmony_ci 981e41f4b71Sopenharmony_ci**Parameters** 982e41f4b71Sopenharmony_ci 983e41f4b71Sopenharmony_ci| Name | Description | 984e41f4b71Sopenharmony_ci| -------- | -------- | 985e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 986e41f4b71Sopenharmony_ci| databasePath | Pointer to the destination directory in which the RDB store is backed up. | 987e41f4b71Sopenharmony_ci 988e41f4b71Sopenharmony_ci**Returns** 989e41f4b71Sopenharmony_ci 990e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 991e41f4b71Sopenharmony_ci 992e41f4b71Sopenharmony_ci**See** 993e41f4b71Sopenharmony_ci 994e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 995e41f4b71Sopenharmony_ci 996e41f4b71Sopenharmony_ci 997e41f4b71Sopenharmony_ci### OH_Rdb_BeginTransaction() 998e41f4b71Sopenharmony_ci 999e41f4b71Sopenharmony_ci``` 1000e41f4b71Sopenharmony_ciint OH_Rdb_BeginTransaction (OH_Rdb_Store *store) 1001e41f4b71Sopenharmony_ci``` 1002e41f4b71Sopenharmony_ci 1003e41f4b71Sopenharmony_ci**Description** 1004e41f4b71Sopenharmony_ci 1005e41f4b71Sopenharmony_ciStarts the transaction before executing the SQL statement. 1006e41f4b71Sopenharmony_ci 1007e41f4b71Sopenharmony_ci**Since**: 10 1008e41f4b71Sopenharmony_ci 1009e41f4b71Sopenharmony_ci**Parameters** 1010e41f4b71Sopenharmony_ci 1011e41f4b71Sopenharmony_ci| Name | Description | 1012e41f4b71Sopenharmony_ci| -------- | -------- | 1013e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1014e41f4b71Sopenharmony_ci 1015e41f4b71Sopenharmony_ci**Returns** 1016e41f4b71Sopenharmony_ci 1017e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1018e41f4b71Sopenharmony_ci 1019e41f4b71Sopenharmony_ci**See** 1020e41f4b71Sopenharmony_ci 1021e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1022e41f4b71Sopenharmony_ci 1023e41f4b71Sopenharmony_ci 1024e41f4b71Sopenharmony_ci### OH_Rdb_CloseStore() 1025e41f4b71Sopenharmony_ci 1026e41f4b71Sopenharmony_ci``` 1027e41f4b71Sopenharmony_ciint OH_Rdb_CloseStore (OH_Rdb_Store *store) 1028e41f4b71Sopenharmony_ci``` 1029e41f4b71Sopenharmony_ci 1030e41f4b71Sopenharmony_ci**Description** 1031e41f4b71Sopenharmony_ci 1032e41f4b71Sopenharmony_ciCloses an [OH_Rdb_Store](_o_h___rdb___store.md) object to reclaim the memory occupied. 1033e41f4b71Sopenharmony_ci 1034e41f4b71Sopenharmony_ci**Since**: 10 1035e41f4b71Sopenharmony_ci 1036e41f4b71Sopenharmony_ci**Parameters** 1037e41f4b71Sopenharmony_ci 1038e41f4b71Sopenharmony_ci| Name | Description | 1039e41f4b71Sopenharmony_ci| -------- | -------- | 1040e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1041e41f4b71Sopenharmony_ci 1042e41f4b71Sopenharmony_ci**Returns** 1043e41f4b71Sopenharmony_ci 1044e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1045e41f4b71Sopenharmony_ci 1046e41f4b71Sopenharmony_ci**See** 1047e41f4b71Sopenharmony_ci 1048e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1049e41f4b71Sopenharmony_ci 1050e41f4b71Sopenharmony_ci 1051e41f4b71Sopenharmony_ci### OH_Rdb_CloudSync() 1052e41f4b71Sopenharmony_ci 1053e41f4b71Sopenharmony_ci``` 1054e41f4b71Sopenharmony_ciint OH_Rdb_CloudSync (OH_Rdb_Store *store, Rdb_SyncMode mode, const char *tables, int count, const Rdb_ProgressObserver *observer ) 1055e41f4b71Sopenharmony_ci``` 1056e41f4b71Sopenharmony_ci 1057e41f4b71Sopenharmony_ci**Description** 1058e41f4b71Sopenharmony_ci 1059e41f4b71Sopenharmony_ciPerforms device-cloud sync. 1060e41f4b71Sopenharmony_ci 1061e41f4b71Sopenharmony_ci**Since**: 11 1062e41f4b71Sopenharmony_ci 1063e41f4b71Sopenharmony_ci**Parameters** 1064e41f4b71Sopenharmony_ci 1065e41f4b71Sopenharmony_ci| Name | Description | 1066e41f4b71Sopenharmony_ci| -------- | -------- | 1067e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1068e41f4b71Sopenharmony_ci| mode | Sync mode [Rdb_SyncMode](#rdb_syncmode).| 1069e41f4b71Sopenharmony_ci| tables | Pointer to the names of the tables to be synchronized. | 1070e41f4b71Sopenharmony_ci| count | Number of tables to synchronize. If the value is **0**, all tables in the database are synchronized. | 1071e41f4b71Sopenharmony_ci| observer | Observer [Rdb_ProgressObserver](_rdb___progress_observer.md) of the device-cloud sync progress. | 1072e41f4b71Sopenharmony_ci 1073e41f4b71Sopenharmony_ci**Returns** 1074e41f4b71Sopenharmony_ci 1075e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1076e41f4b71Sopenharmony_ci 1077e41f4b71Sopenharmony_ci**See** 1078e41f4b71Sopenharmony_ci 1079e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1080e41f4b71Sopenharmony_ci 1081e41f4b71Sopenharmony_ci 1082e41f4b71Sopenharmony_ci### OH_Rdb_Commit() 1083e41f4b71Sopenharmony_ci 1084e41f4b71Sopenharmony_ci``` 1085e41f4b71Sopenharmony_ciint OH_Rdb_Commit (OH_Rdb_Store *store) 1086e41f4b71Sopenharmony_ci``` 1087e41f4b71Sopenharmony_ci 1088e41f4b71Sopenharmony_ci**Description** 1089e41f4b71Sopenharmony_ci 1090e41f4b71Sopenharmony_ciCommits the executed SQL statements. 1091e41f4b71Sopenharmony_ci 1092e41f4b71Sopenharmony_ci**Since**: 10 1093e41f4b71Sopenharmony_ci 1094e41f4b71Sopenharmony_ci**Parameters** 1095e41f4b71Sopenharmony_ci 1096e41f4b71Sopenharmony_ci| Name | Description | 1097e41f4b71Sopenharmony_ci| -------- | -------- | 1098e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1099e41f4b71Sopenharmony_ci 1100e41f4b71Sopenharmony_ci**Returns** 1101e41f4b71Sopenharmony_ci 1102e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1103e41f4b71Sopenharmony_ci 1104e41f4b71Sopenharmony_ci**See** 1105e41f4b71Sopenharmony_ci 1106e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1107e41f4b71Sopenharmony_ci 1108e41f4b71Sopenharmony_ci 1109e41f4b71Sopenharmony_ci### OH_Rdb_CreatePredicates() 1110e41f4b71Sopenharmony_ci 1111e41f4b71Sopenharmony_ci``` 1112e41f4b71Sopenharmony_ciOH_Predicates* OH_Rdb_CreatePredicates (const char *table) 1113e41f4b71Sopenharmony_ci``` 1114e41f4b71Sopenharmony_ci 1115e41f4b71Sopenharmony_ci**Description** 1116e41f4b71Sopenharmony_ci 1117e41f4b71Sopenharmony_ciCreates an [OH_Predicates](_o_h___predicates.md) instance. 1118e41f4b71Sopenharmony_ci 1119e41f4b71Sopenharmony_ci**Since**: 10 1120e41f4b71Sopenharmony_ci 1121e41f4b71Sopenharmony_ci**Parameters** 1122e41f4b71Sopenharmony_ci 1123e41f4b71Sopenharmony_ci| Name | Description | 1124e41f4b71Sopenharmony_ci| -------- | -------- | 1125e41f4b71Sopenharmony_ci| table | Pointer to the name of the database table. | 1126e41f4b71Sopenharmony_ci 1127e41f4b71Sopenharmony_ci**Returns** 1128e41f4b71Sopenharmony_ci 1129e41f4b71Sopenharmony_ciReturns the pointer to the [OH_Predicates](_o_h___predicates.md) instance created if the operation is successful; returns null otherwise. 1130e41f4b71Sopenharmony_ci 1131e41f4b71Sopenharmony_ci**See** 1132e41f4b71Sopenharmony_ci 1133e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 1134e41f4b71Sopenharmony_ci 1135e41f4b71Sopenharmony_ci 1136e41f4b71Sopenharmony_ci### OH_Rdb_CreateValueObject() 1137e41f4b71Sopenharmony_ci 1138e41f4b71Sopenharmony_ci``` 1139e41f4b71Sopenharmony_ciOH_VObject* OH_Rdb_CreateValueObject () 1140e41f4b71Sopenharmony_ci``` 1141e41f4b71Sopenharmony_ci 1142e41f4b71Sopenharmony_ci**Description** 1143e41f4b71Sopenharmony_ci 1144e41f4b71Sopenharmony_ciCreates an [OH_VObject](_o_h___v_object.md) instance. 1145e41f4b71Sopenharmony_ci 1146e41f4b71Sopenharmony_ci**Since**: 10 1147e41f4b71Sopenharmony_ci 1148e41f4b71Sopenharmony_ci**Returns** 1149e41f4b71Sopenharmony_ci 1150e41f4b71Sopenharmony_ciReturns the pointer to the [OH_VObject](_o_h___v_object.md) instance created if the operation is successful; returns null otherwise. 1151e41f4b71Sopenharmony_ci 1152e41f4b71Sopenharmony_ci**See** 1153e41f4b71Sopenharmony_ci 1154e41f4b71Sopenharmony_ci[OH_VObject](_o_h___v_object.md). 1155e41f4b71Sopenharmony_ci 1156e41f4b71Sopenharmony_ci 1157e41f4b71Sopenharmony_ci### OH_Rdb_CreateValuesBucket() 1158e41f4b71Sopenharmony_ci 1159e41f4b71Sopenharmony_ci``` 1160e41f4b71Sopenharmony_ciOH_VBucket* OH_Rdb_CreateValuesBucket () 1161e41f4b71Sopenharmony_ci``` 1162e41f4b71Sopenharmony_ci 1163e41f4b71Sopenharmony_ci**Description** 1164e41f4b71Sopenharmony_ci 1165e41f4b71Sopenharmony_ciCreates an [OH_VBucket](_o_h___v_bucket.md) instance. 1166e41f4b71Sopenharmony_ci 1167e41f4b71Sopenharmony_ci**Since**: 10 1168e41f4b71Sopenharmony_ci 1169e41f4b71Sopenharmony_ci**Returns** 1170e41f4b71Sopenharmony_ci 1171e41f4b71Sopenharmony_ciReturns the pointer to the [OH_VBucket](_o_h___v_bucket.md) instance created if the operation is successful; returns null otherwise. 1172e41f4b71Sopenharmony_ci 1173e41f4b71Sopenharmony_ci**See** 1174e41f4b71Sopenharmony_ci 1175e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 1176e41f4b71Sopenharmony_ci 1177e41f4b71Sopenharmony_ci 1178e41f4b71Sopenharmony_ci### OH_Rdb_Delete() 1179e41f4b71Sopenharmony_ci 1180e41f4b71Sopenharmony_ci``` 1181e41f4b71Sopenharmony_ciint OH_Rdb_Delete (OH_Rdb_Store *store, OH_Predicates *predicates ) 1182e41f4b71Sopenharmony_ci``` 1183e41f4b71Sopenharmony_ci 1184e41f4b71Sopenharmony_ci**Description** 1185e41f4b71Sopenharmony_ci 1186e41f4b71Sopenharmony_ciDeletes data from an RDB store based on specified conditions. 1187e41f4b71Sopenharmony_ci 1188e41f4b71Sopenharmony_ci**Since**: 10 1189e41f4b71Sopenharmony_ci 1190e41f4b71Sopenharmony_ci**Parameters** 1191e41f4b71Sopenharmony_ci 1192e41f4b71Sopenharmony_ci| Name | Description | 1193e41f4b71Sopenharmony_ci| -------- | -------- | 1194e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1195e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance, which specifies the deletion conditions. | 1196e41f4b71Sopenharmony_ci 1197e41f4b71Sopenharmony_ci**Returns** 1198e41f4b71Sopenharmony_ci 1199e41f4b71Sopenharmony_ciReturns the number of affected rows if the operation is successful; returns an error code otherwise. 1200e41f4b71Sopenharmony_ci 1201e41f4b71Sopenharmony_ci**See** 1202e41f4b71Sopenharmony_ci 1203e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md), [OH_Predicates](_o_h___predicates.md). 1204e41f4b71Sopenharmony_ci 1205e41f4b71Sopenharmony_ci 1206e41f4b71Sopenharmony_ci### OH_Rdb_DeleteStore() 1207e41f4b71Sopenharmony_ci 1208e41f4b71Sopenharmony_ci``` 1209e41f4b71Sopenharmony_ciint OH_Rdb_DeleteStore (const OH_Rdb_Config *config) 1210e41f4b71Sopenharmony_ci``` 1211e41f4b71Sopenharmony_ci 1212e41f4b71Sopenharmony_ci**Description** 1213e41f4b71Sopenharmony_ci 1214e41f4b71Sopenharmony_ciDeletes an RDB store with the specified database file configuration. 1215e41f4b71Sopenharmony_ci 1216e41f4b71Sopenharmony_ci**Since**: 10 1217e41f4b71Sopenharmony_ci 1218e41f4b71Sopenharmony_ci**Parameters** 1219e41f4b71Sopenharmony_ci 1220e41f4b71Sopenharmony_ci| Name | Description | 1221e41f4b71Sopenharmony_ci| -------- | -------- | 1222e41f4b71Sopenharmony_ci| config | Pointer to the configuration of the database. | 1223e41f4b71Sopenharmony_ci 1224e41f4b71Sopenharmony_ci**Returns** 1225e41f4b71Sopenharmony_ci 1226e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1227e41f4b71Sopenharmony_ci 1228e41f4b71Sopenharmony_ci 1229e41f4b71Sopenharmony_ci### OH_Rdb_Execute() 1230e41f4b71Sopenharmony_ci 1231e41f4b71Sopenharmony_ci``` 1232e41f4b71Sopenharmony_ciint OH_Rdb_Execute (OH_Rdb_Store *store, const char *sql ) 1233e41f4b71Sopenharmony_ci``` 1234e41f4b71Sopenharmony_ci 1235e41f4b71Sopenharmony_ci**Description** 1236e41f4b71Sopenharmony_ci 1237e41f4b71Sopenharmony_ciExecutes an SQL statement but returns no value. 1238e41f4b71Sopenharmony_ci 1239e41f4b71Sopenharmony_ci**Since**: 10 1240e41f4b71Sopenharmony_ci 1241e41f4b71Sopenharmony_ci**Parameters** 1242e41f4b71Sopenharmony_ci 1243e41f4b71Sopenharmony_ci| Name | Description | 1244e41f4b71Sopenharmony_ci| -------- | -------- | 1245e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1246e41f4b71Sopenharmony_ci| sql | Pointer to the SQL statement to execute. | 1247e41f4b71Sopenharmony_ci 1248e41f4b71Sopenharmony_ci**Returns** 1249e41f4b71Sopenharmony_ci 1250e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1251e41f4b71Sopenharmony_ci 1252e41f4b71Sopenharmony_ci**See** 1253e41f4b71Sopenharmony_ci 1254e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1255e41f4b71Sopenharmony_ci 1256e41f4b71Sopenharmony_ci 1257e41f4b71Sopenharmony_ci### OH_Rdb_ExecuteQuery() 1258e41f4b71Sopenharmony_ci 1259e41f4b71Sopenharmony_ci``` 1260e41f4b71Sopenharmony_ciOH_Cursor* OH_Rdb_ExecuteQuery (OH_Rdb_Store *store, const char *sql ) 1261e41f4b71Sopenharmony_ci``` 1262e41f4b71Sopenharmony_ci 1263e41f4b71Sopenharmony_ci**Description** 1264e41f4b71Sopenharmony_ci 1265e41f4b71Sopenharmony_ciExecutes the SQL statement to query data in an RDB store. 1266e41f4b71Sopenharmony_ci 1267e41f4b71Sopenharmony_ci**Since**: 10 1268e41f4b71Sopenharmony_ci 1269e41f4b71Sopenharmony_ci**Parameters** 1270e41f4b71Sopenharmony_ci 1271e41f4b71Sopenharmony_ci| Name | Description | 1272e41f4b71Sopenharmony_ci| -------- | -------- | 1273e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1274e41f4b71Sopenharmony_ci| sql | Pointer to the SQL statement to execute. | 1275e41f4b71Sopenharmony_ci 1276e41f4b71Sopenharmony_ci**Returns** 1277e41f4b71Sopenharmony_ci 1278e41f4b71Sopenharmony_ciReturns the pointer to the [OH_Cursor](_o_h___cursor.md) instance if the operation is successful; returns null otherwise. 1279e41f4b71Sopenharmony_ci 1280e41f4b71Sopenharmony_ci**See** 1281e41f4b71Sopenharmony_ci 1282e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1283e41f4b71Sopenharmony_ci 1284e41f4b71Sopenharmony_ci 1285e41f4b71Sopenharmony_ci### OH_Rdb_FindModifyTime() 1286e41f4b71Sopenharmony_ci 1287e41f4b71Sopenharmony_ci``` 1288e41f4b71Sopenharmony_ciOH_Cursor* OH_Rdb_FindModifyTime (OH_Rdb_Store *store, const char *tableName, const char *columnName, OH_VObject *values ) 1289e41f4b71Sopenharmony_ci``` 1290e41f4b71Sopenharmony_ci 1291e41f4b71Sopenharmony_ci**Description** 1292e41f4b71Sopenharmony_ci 1293e41f4b71Sopenharmony_ciObtains the last modification time of a table in an RDB store. 1294e41f4b71Sopenharmony_ci 1295e41f4b71Sopenharmony_ci**Since**: 11 1296e41f4b71Sopenharmony_ci 1297e41f4b71Sopenharmony_ci**Parameters** 1298e41f4b71Sopenharmony_ci 1299e41f4b71Sopenharmony_ci| Name | Description | 1300e41f4b71Sopenharmony_ci| -------- | -------- | 1301e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1302e41f4b71Sopenharmony_ci| tableName | Pointer to the target distributed database table. | 1303e41f4b71Sopenharmony_ci| columnName | Pointer to the column of the database table to query. | 1304e41f4b71Sopenharmony_ci| values | Pointer to the primary keys of the rows to query. If the database table has no primary key, **rowid** must be passed in through **columnName**. In this case, **values** specifies the row number of the database table to query. | 1305e41f4b71Sopenharmony_ci 1306e41f4b71Sopenharmony_ci**Returns** 1307e41f4b71Sopenharmony_ci 1308e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1309e41f4b71Sopenharmony_ci 1310e41f4b71Sopenharmony_ci**See** 1311e41f4b71Sopenharmony_ci 1312e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1313e41f4b71Sopenharmony_ci 1314e41f4b71Sopenharmony_ci 1315e41f4b71Sopenharmony_ci### OH_Rdb_GetOrOpen() 1316e41f4b71Sopenharmony_ci 1317e41f4b71Sopenharmony_ci``` 1318e41f4b71Sopenharmony_ciOH_Rdb_Store* OH_Rdb_GetOrOpen (const OH_Rdb_Config *config, int *errCode ) 1319e41f4b71Sopenharmony_ci``` 1320e41f4b71Sopenharmony_ci 1321e41f4b71Sopenharmony_ci**Description** 1322e41f4b71Sopenharmony_ci 1323e41f4b71Sopenharmony_ciObtains an [OH_Rdb_Store](_o_h___rdb___store.md) instance for RDB store operations. 1324e41f4b71Sopenharmony_ci 1325e41f4b71Sopenharmony_ci**Since**: 10 1326e41f4b71Sopenharmony_ci 1327e41f4b71Sopenharmony_ci**Parameters** 1328e41f4b71Sopenharmony_ci 1329e41f4b71Sopenharmony_ci| Name | Description | 1330e41f4b71Sopenharmony_ci| -------- | -------- | 1331e41f4b71Sopenharmony_ci| config | Pointer to the [OH_Rdb_Config](_o_h___rdb___config.md) instance, which specifies the database configuration. | 1332e41f4b71Sopenharmony_ci| errCode | Function execution status. | 1333e41f4b71Sopenharmony_ci 1334e41f4b71Sopenharmony_ci**Returns** 1335e41f4b71Sopenharmony_ci 1336e41f4b71Sopenharmony_ciReturns the pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance created if the operation is successful; returns null otherwise. 1337e41f4b71Sopenharmony_ci 1338e41f4b71Sopenharmony_ci**See** 1339e41f4b71Sopenharmony_ci 1340e41f4b71Sopenharmony_ci[OH_Rdb_Config](_o_h___rdb___config.md), [OH_Rdb_Store](_o_h___rdb___store.md). 1341e41f4b71Sopenharmony_ci 1342e41f4b71Sopenharmony_ci 1343e41f4b71Sopenharmony_ci### OH_Rdb_GetTableDetails() 1344e41f4b71Sopenharmony_ci 1345e41f4b71Sopenharmony_ci``` 1346e41f4b71Sopenharmony_ciRdb_TableDetails* OH_Rdb_GetTableDetails (Rdb_ProgressDetails *progress, int32_t version ) 1347e41f4b71Sopenharmony_ci``` 1348e41f4b71Sopenharmony_ci 1349e41f4b71Sopenharmony_ci**Description** 1350e41f4b71Sopenharmony_ci 1351e41f4b71Sopenharmony_ciObtains the device-cloud sync statistics of a table. 1352e41f4b71Sopenharmony_ci 1353e41f4b71Sopenharmony_ci**Since**: 11 1354e41f4b71Sopenharmony_ci 1355e41f4b71Sopenharmony_ci**Parameters** 1356e41f4b71Sopenharmony_ci 1357e41f4b71Sopenharmony_ci| Name | Description | 1358e41f4b71Sopenharmony_ci| -------- | -------- | 1359e41f4b71Sopenharmony_ci| progress | Pointer to the **OH_ProgressDetails** instance. | 1360e41f4b71Sopenharmony_ci| version | Version of [Rdb_ProgressDetails](_rdb___progress_details.md). | 1361e41f4b71Sopenharmony_ci 1362e41f4b71Sopenharmony_ci**Returns** 1363e41f4b71Sopenharmony_ci 1364e41f4b71Sopenharmony_ciReturns a pointer to [Rdb_TableDetails](_rdb___table_details.md) if the operation is successful; returns null otherwise. 1365e41f4b71Sopenharmony_ci 1366e41f4b71Sopenharmony_ci**See** 1367e41f4b71Sopenharmony_ci 1368e41f4b71Sopenharmony_ci[Rdb_ProgressDetails](_rdb___progress_details.md) 1369e41f4b71Sopenharmony_ci 1370e41f4b71Sopenharmony_ci[Rdb_TableDetails](_rdb___table_details.md) 1371e41f4b71Sopenharmony_ci 1372e41f4b71Sopenharmony_ci 1373e41f4b71Sopenharmony_ci### OH_Rdb_GetVersion() 1374e41f4b71Sopenharmony_ci 1375e41f4b71Sopenharmony_ci``` 1376e41f4b71Sopenharmony_ciint OH_Rdb_GetVersion (OH_Rdb_Store *store, int *version ) 1377e41f4b71Sopenharmony_ci``` 1378e41f4b71Sopenharmony_ci 1379e41f4b71Sopenharmony_ci**Description** 1380e41f4b71Sopenharmony_ci 1381e41f4b71Sopenharmony_ciObtains the RDB store version. 1382e41f4b71Sopenharmony_ci 1383e41f4b71Sopenharmony_ci**Since**: 10 1384e41f4b71Sopenharmony_ci 1385e41f4b71Sopenharmony_ci**Parameters** 1386e41f4b71Sopenharmony_ci 1387e41f4b71Sopenharmony_ci| Name | Description | 1388e41f4b71Sopenharmony_ci| -------- | -------- | 1389e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1390e41f4b71Sopenharmony_ci| version | Pointer to the version obtained. | 1391e41f4b71Sopenharmony_ci 1392e41f4b71Sopenharmony_ci**Returns** 1393e41f4b71Sopenharmony_ci 1394e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1395e41f4b71Sopenharmony_ci 1396e41f4b71Sopenharmony_ci**See** 1397e41f4b71Sopenharmony_ci 1398e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1399e41f4b71Sopenharmony_ci 1400e41f4b71Sopenharmony_ci 1401e41f4b71Sopenharmony_ci### OH_Rdb_Insert() 1402e41f4b71Sopenharmony_ci 1403e41f4b71Sopenharmony_ci``` 1404e41f4b71Sopenharmony_ciint OH_Rdb_Insert (OH_Rdb_Store *store, const char *table, OH_VBucket *valuesBucket ) 1405e41f4b71Sopenharmony_ci``` 1406e41f4b71Sopenharmony_ci 1407e41f4b71Sopenharmony_ci**Description** 1408e41f4b71Sopenharmony_ci 1409e41f4b71Sopenharmony_ciInserts a row of data into a table. 1410e41f4b71Sopenharmony_ci 1411e41f4b71Sopenharmony_ci**Since**: 10 1412e41f4b71Sopenharmony_ci 1413e41f4b71Sopenharmony_ci**Parameters** 1414e41f4b71Sopenharmony_ci 1415e41f4b71Sopenharmony_ci| Name | Description | 1416e41f4b71Sopenharmony_ci| -------- | -------- | 1417e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1418e41f4b71Sopenharmony_ci| table | Pointer to the target table. | 1419e41f4b71Sopenharmony_ci| valuesBucket | Pointer to the data [OH_VBucket](_o_h___v_bucket.md) to insert. | 1420e41f4b71Sopenharmony_ci 1421e41f4b71Sopenharmony_ci**Returns** 1422e41f4b71Sopenharmony_ci 1423e41f4b71Sopenharmony_ciReturns the row ID if the operation is successful; returns an error code otherwise. 1424e41f4b71Sopenharmony_ci 1425e41f4b71Sopenharmony_ci**See** 1426e41f4b71Sopenharmony_ci 1427e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md), [OH_VBucket](_o_h___v_bucket.md). 1428e41f4b71Sopenharmony_ci 1429e41f4b71Sopenharmony_ci### OH_Rdb_LockRow() 1430e41f4b71Sopenharmony_ci 1431e41f4b71Sopenharmony_ci``` 1432e41f4b71Sopenharmony_ciint OH_Rdb_LockRow (OH_Rdb_Store *store, OH_Predicates *predicates ) 1433e41f4b71Sopenharmony_ci``` 1434e41f4b71Sopenharmony_ci 1435e41f4b71Sopenharmony_ci**Description** 1436e41f4b71Sopenharmony_ci 1437e41f4b71Sopenharmony_ciLocks data in an RDB store based on specified conditions. The locked data will be blocked from the device-cloud sync. 1438e41f4b71Sopenharmony_ci 1439e41f4b71Sopenharmony_ci**Since**: 12 1440e41f4b71Sopenharmony_ci 1441e41f4b71Sopenharmony_ci**Parameters** 1442e41f4b71Sopenharmony_ci 1443e41f4b71Sopenharmony_ci| Name | Description | 1444e41f4b71Sopenharmony_ci| -------- | -------- | 1445e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1446e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance, which specifies the lock conditions. | 1447e41f4b71Sopenharmony_ci 1448e41f4b71Sopenharmony_ci**Returns** 1449e41f4b71Sopenharmony_ci 1450e41f4b71Sopenharmony_ciResult of the lock operation. 1451e41f4b71Sopenharmony_ci 1452e41f4b71Sopenharmony_ci**See** 1453e41f4b71Sopenharmony_ci 1454e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md), [OH_Predicates](_o_h___predicates.md). 1455e41f4b71Sopenharmony_ci 1456e41f4b71Sopenharmony_ci### OH_Rdb_Query() 1457e41f4b71Sopenharmony_ci 1458e41f4b71Sopenharmony_ci``` 1459e41f4b71Sopenharmony_ciOH_Cursor* OH_Rdb_Query (OH_Rdb_Store *store, OH_Predicates *predicates, const char *const *columnNames, int length ) 1460e41f4b71Sopenharmony_ci``` 1461e41f4b71Sopenharmony_ci 1462e41f4b71Sopenharmony_ci**Description** 1463e41f4b71Sopenharmony_ci 1464e41f4b71Sopenharmony_ciQueries data in an RDB store based on specified conditions. 1465e41f4b71Sopenharmony_ci 1466e41f4b71Sopenharmony_ci**Since**: 10 1467e41f4b71Sopenharmony_ci 1468e41f4b71Sopenharmony_ci**Parameters** 1469e41f4b71Sopenharmony_ci 1470e41f4b71Sopenharmony_ci| Name | Description | 1471e41f4b71Sopenharmony_ci| -------- | -------- | 1472e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1473e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance, which specifies the query conditions. | 1474e41f4b71Sopenharmony_ci| columnNames | Pointer to the columns to query. If this parameter is not specified, data of columns will be queried. | 1475e41f4b71Sopenharmony_ci| length | Length of the **columnNames** array. If <b>length</b> is greater than the length of <b>columnNames</b> array, out-of-bounds access occurs. | 1476e41f4b71Sopenharmony_ci 1477e41f4b71Sopenharmony_ci**Returns** 1478e41f4b71Sopenharmony_ci 1479e41f4b71Sopenharmony_ciReturns the pointer to the [OH_Cursor](_o_h___cursor.md) instance if the operation is successful; returns null otherwise. 1480e41f4b71Sopenharmony_ci 1481e41f4b71Sopenharmony_ci**See** 1482e41f4b71Sopenharmony_ci 1483e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md), [OH_Predicates](_o_h___predicates.md), [OH_Cursor](_o_h___cursor.md). 1484e41f4b71Sopenharmony_ci 1485e41f4b71Sopenharmony_ci### OH_Rdb_QueryLockedRow() 1486e41f4b71Sopenharmony_ci 1487e41f4b71Sopenharmony_ci``` 1488e41f4b71Sopenharmony_ciOH_Cursor *OH_Rdb_QueryLockedRow (OH_Rdb_Store *store, OH_Predicates *predicates, const char *const *columnNames, int length ) 1489e41f4b71Sopenharmony_ci``` 1490e41f4b71Sopenharmony_ci 1491e41f4b71Sopenharmony_ci**Description** 1492e41f4b71Sopenharmony_ci 1493e41f4b71Sopenharmony_ciQueries the locked data in an RDB store. 1494e41f4b71Sopenharmony_ci 1495e41f4b71Sopenharmony_ci**Since**: 12 1496e41f4b71Sopenharmony_ci 1497e41f4b71Sopenharmony_ci**Parameters** 1498e41f4b71Sopenharmony_ci 1499e41f4b71Sopenharmony_ci| Name | Description | 1500e41f4b71Sopenharmony_ci| -------- | -------- | 1501e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1502e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance, which specifies the query conditions. | 1503e41f4b71Sopenharmony_ci| columnNames | Pointer to the columns to query. If this parameter is not specified, data of columns will be queried. | 1504e41f4b71Sopenharmony_ci| length | Length of the **columnNames** array. If <b>length</b> is greater than the length of <b>columnNames</b> array, out-of-bounds access occurs. | 1505e41f4b71Sopenharmony_ci 1506e41f4b71Sopenharmony_ci**Returns** 1507e41f4b71Sopenharmony_ci 1508e41f4b71Sopenharmony_ciReturns the pointer to the [OH_Cursor](_o_h___cursor.md) instance if the operation is successful; returns null otherwise. 1509e41f4b71Sopenharmony_ci 1510e41f4b71Sopenharmony_ci**See** 1511e41f4b71Sopenharmony_ci 1512e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md), [OH_Predicates](_o_h___predicates.md), [OH_Cursor](_o_h___cursor.md). 1513e41f4b71Sopenharmony_ci 1514e41f4b71Sopenharmony_ci### OH_Rdb_Restore() 1515e41f4b71Sopenharmony_ci 1516e41f4b71Sopenharmony_ci``` 1517e41f4b71Sopenharmony_ciint OH_Rdb_Restore (OH_Rdb_Store *store, const char *databasePath ) 1518e41f4b71Sopenharmony_ci``` 1519e41f4b71Sopenharmony_ci 1520e41f4b71Sopenharmony_ci**Description** 1521e41f4b71Sopenharmony_ci 1522e41f4b71Sopenharmony_ciRestores an RDB store from the specified database backup file. 1523e41f4b71Sopenharmony_ci 1524e41f4b71Sopenharmony_ci**Since**: 10 1525e41f4b71Sopenharmony_ci 1526e41f4b71Sopenharmony_ci**Parameters** 1527e41f4b71Sopenharmony_ci 1528e41f4b71Sopenharmony_ci| Name | Description | 1529e41f4b71Sopenharmony_ci| -------- | -------- | 1530e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1531e41f4b71Sopenharmony_ci| databasePath | Pointer to the destination directory in which the RDB store is backed up. | 1532e41f4b71Sopenharmony_ci 1533e41f4b71Sopenharmony_ci**Returns** 1534e41f4b71Sopenharmony_ci 1535e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1536e41f4b71Sopenharmony_ci 1537e41f4b71Sopenharmony_ci**See** 1538e41f4b71Sopenharmony_ci 1539e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1540e41f4b71Sopenharmony_ci 1541e41f4b71Sopenharmony_ci 1542e41f4b71Sopenharmony_ci### OH_Rdb_RollBack() 1543e41f4b71Sopenharmony_ci 1544e41f4b71Sopenharmony_ci``` 1545e41f4b71Sopenharmony_ciint OH_Rdb_RollBack (OH_Rdb_Store *store) 1546e41f4b71Sopenharmony_ci``` 1547e41f4b71Sopenharmony_ci 1548e41f4b71Sopenharmony_ci**Description** 1549e41f4b71Sopenharmony_ci 1550e41f4b71Sopenharmony_ciRolls back the SQL statements executed. 1551e41f4b71Sopenharmony_ci 1552e41f4b71Sopenharmony_ci**Since**: 10 1553e41f4b71Sopenharmony_ci 1554e41f4b71Sopenharmony_ci**Parameters** 1555e41f4b71Sopenharmony_ci 1556e41f4b71Sopenharmony_ci| Name | Description | 1557e41f4b71Sopenharmony_ci| -------- | -------- | 1558e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1559e41f4b71Sopenharmony_ci 1560e41f4b71Sopenharmony_ci**Returns** 1561e41f4b71Sopenharmony_ci 1562e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1563e41f4b71Sopenharmony_ci 1564e41f4b71Sopenharmony_ci**See** 1565e41f4b71Sopenharmony_ci 1566e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1567e41f4b71Sopenharmony_ci 1568e41f4b71Sopenharmony_ci 1569e41f4b71Sopenharmony_ci### OH_Rdb_SetDistributedTables() 1570e41f4b71Sopenharmony_ci 1571e41f4b71Sopenharmony_ci``` 1572e41f4b71Sopenharmony_ciint OH_Rdb_SetDistributedTables (OH_Rdb_Store *store, const char *tables[], uint32_t count, Rdb_DistributedType type, const Rdb_DistributedConfig * config ) 1573e41f4b71Sopenharmony_ci``` 1574e41f4b71Sopenharmony_ci 1575e41f4b71Sopenharmony_ci**Description** 1576e41f4b71Sopenharmony_ci 1577e41f4b71Sopenharmony_ciSets distributed database tables. 1578e41f4b71Sopenharmony_ci 1579e41f4b71Sopenharmony_ci**Since**: 11 1580e41f4b71Sopenharmony_ci 1581e41f4b71Sopenharmony_ci**Parameters** 1582e41f4b71Sopenharmony_ci 1583e41f4b71Sopenharmony_ci| Name | Description | 1584e41f4b71Sopenharmony_ci| -------- | -------- | 1585e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1586e41f4b71Sopenharmony_ci| tables | Pointer to the names of the distributed tables to set. | 1587e41f4b71Sopenharmony_ci| count | Number of distributed database tables to be set. | 1588e41f4b71Sopenharmony_ci| type | [Rdb_DistributedType](#rdb_distributedtype). | 1589e41f4b71Sopenharmony_ci| config | Configuration of the distributed mode. For details, see [Rdb_DistributedConfig](_rdb___distributed_config.md). | 1590e41f4b71Sopenharmony_ci 1591e41f4b71Sopenharmony_ci**Returns** 1592e41f4b71Sopenharmony_ci 1593e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1594e41f4b71Sopenharmony_ci 1595e41f4b71Sopenharmony_ci**See** 1596e41f4b71Sopenharmony_ci 1597e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1598e41f4b71Sopenharmony_ci 1599e41f4b71Sopenharmony_ci 1600e41f4b71Sopenharmony_ci### OH_Rdb_SetVersion() 1601e41f4b71Sopenharmony_ci 1602e41f4b71Sopenharmony_ci``` 1603e41f4b71Sopenharmony_ciint OH_Rdb_SetVersion (OH_Rdb_Store *store, int version ) 1604e41f4b71Sopenharmony_ci``` 1605e41f4b71Sopenharmony_ci 1606e41f4b71Sopenharmony_ci**Description** 1607e41f4b71Sopenharmony_ci 1608e41f4b71Sopenharmony_ciSets the RDB store version. 1609e41f4b71Sopenharmony_ci 1610e41f4b71Sopenharmony_ci**Since**: 10 1611e41f4b71Sopenharmony_ci 1612e41f4b71Sopenharmony_ci**Parameters** 1613e41f4b71Sopenharmony_ci 1614e41f4b71Sopenharmony_ci| Name | Description | 1615e41f4b71Sopenharmony_ci| -------- | -------- | 1616e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1617e41f4b71Sopenharmony_ci| version | Version to set. | 1618e41f4b71Sopenharmony_ci 1619e41f4b71Sopenharmony_ci**Returns** 1620e41f4b71Sopenharmony_ci 1621e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1622e41f4b71Sopenharmony_ci 1623e41f4b71Sopenharmony_ci**See** 1624e41f4b71Sopenharmony_ci 1625e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1626e41f4b71Sopenharmony_ci 1627e41f4b71Sopenharmony_ci 1628e41f4b71Sopenharmony_ci### OH_Rdb_Subscribe() 1629e41f4b71Sopenharmony_ci 1630e41f4b71Sopenharmony_ci``` 1631e41f4b71Sopenharmony_ciint OH_Rdb_Subscribe (OH_Rdb_Store *store, Rdb_SubscribeType type, const Rdb_DataObserver *observer ) 1632e41f4b71Sopenharmony_ci``` 1633e41f4b71Sopenharmony_ci 1634e41f4b71Sopenharmony_ci**Description** 1635e41f4b71Sopenharmony_ci 1636e41f4b71Sopenharmony_ciRegisters an observer for an RDB store. When data in the RDB store changes, a callback will be invoked to return the data changes. 1637e41f4b71Sopenharmony_ci 1638e41f4b71Sopenharmony_ci**Since**: 11 1639e41f4b71Sopenharmony_ci 1640e41f4b71Sopenharmony_ci**Parameters** 1641e41f4b71Sopenharmony_ci 1642e41f4b71Sopenharmony_ci| Name | Description | 1643e41f4b71Sopenharmony_ci| -------- | -------- | 1644e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1645e41f4b71Sopenharmony_ci| type | Subscription type defined in [Rdb_SubscribeType](#rdb_subscribetype). | 1646e41f4b71Sopenharmony_ci| observer | Pointer to the [Rdb_DataObserver](_rdb___data_observer.md) instance. | 1647e41f4b71Sopenharmony_ci 1648e41f4b71Sopenharmony_ci**Returns** 1649e41f4b71Sopenharmony_ci 1650e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1651e41f4b71Sopenharmony_ci 1652e41f4b71Sopenharmony_ci**See** 1653e41f4b71Sopenharmony_ci 1654e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1655e41f4b71Sopenharmony_ci 1656e41f4b71Sopenharmony_ci[Rdb_DataObserver](_rdb___data_observer.md). 1657e41f4b71Sopenharmony_ci 1658e41f4b71Sopenharmony_ci 1659e41f4b71Sopenharmony_ci### OH_Rdb_SubscribeAutoSyncProgress() 1660e41f4b71Sopenharmony_ci 1661e41f4b71Sopenharmony_ci``` 1662e41f4b71Sopenharmony_ciint OH_Rdb_SubscribeAutoSyncProgress (OH_Rdb_Store *store, const Rdb_ProgressObserver *observer ) 1663e41f4b71Sopenharmony_ci``` 1664e41f4b71Sopenharmony_ci 1665e41f4b71Sopenharmony_ci**Description** 1666e41f4b71Sopenharmony_ci 1667e41f4b71Sopenharmony_ciSubscribes to the automatic sync progress of an RDB store. The registered callback will be invoked to return the automatic sync progress. 1668e41f4b71Sopenharmony_ci 1669e41f4b71Sopenharmony_ci**Since**: 11 1670e41f4b71Sopenharmony_ci 1671e41f4b71Sopenharmony_ci**Parameters** 1672e41f4b71Sopenharmony_ci 1673e41f4b71Sopenharmony_ci| Name | Description | 1674e41f4b71Sopenharmony_ci| -------- | -------- | 1675e41f4b71Sopenharmony_ci| store | Pointer to the target [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1676e41f4b71Sopenharmony_ci| observer | Pointer to the [Rdb_ProgressObserver](_rdb___progress_observer.md) instance, which invokes the callback to return the automatic sync progress. | 1677e41f4b71Sopenharmony_ci 1678e41f4b71Sopenharmony_ci**Returns** 1679e41f4b71Sopenharmony_ci 1680e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1681e41f4b71Sopenharmony_ci 1682e41f4b71Sopenharmony_ci**See** 1683e41f4b71Sopenharmony_ci 1684e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1685e41f4b71Sopenharmony_ci 1686e41f4b71Sopenharmony_ci[Rdb_ProgressObserver](_rdb___progress_observer.md). 1687e41f4b71Sopenharmony_ci 1688e41f4b71Sopenharmony_ci### OH_Rdb_UnlockRow() 1689e41f4b71Sopenharmony_ci 1690e41f4b71Sopenharmony_ci``` 1691e41f4b71Sopenharmony_ciint OH_Rdb_UnlockRow (OH_Rdb_Store *store, OH_Predicates *predicates ) 1692e41f4b71Sopenharmony_ci``` 1693e41f4b71Sopenharmony_ci 1694e41f4b71Sopenharmony_ci**Description** 1695e41f4b71Sopenharmony_ci 1696e41f4b71Sopenharmony_ciUnlocks data in an RDB store based on the specified conditions. 1697e41f4b71Sopenharmony_ci 1698e41f4b71Sopenharmony_ci**Since**: 12 1699e41f4b71Sopenharmony_ci 1700e41f4b71Sopenharmony_ci**Parameters** 1701e41f4b71Sopenharmony_ci 1702e41f4b71Sopenharmony_ci| Name | Description | 1703e41f4b71Sopenharmony_ci| -------- | -------- | 1704e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1705e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance, which specifies the unlock conditions. | 1706e41f4b71Sopenharmony_ci 1707e41f4b71Sopenharmony_ci**Returns** 1708e41f4b71Sopenharmony_ci 1709e41f4b71Sopenharmony_ciResult of the unlock operation. 1710e41f4b71Sopenharmony_ci 1711e41f4b71Sopenharmony_ci**See** 1712e41f4b71Sopenharmony_ci 1713e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md), [OH_Predicates](_o_h___predicates.md). 1714e41f4b71Sopenharmony_ci 1715e41f4b71Sopenharmony_ci### OH_Rdb_Unsubscribe() 1716e41f4b71Sopenharmony_ci 1717e41f4b71Sopenharmony_ci``` 1718e41f4b71Sopenharmony_ciint OH_Rdb_Unsubscribe (OH_Rdb_Store *store, Rdb_SubscribeType type, const Rdb_DataObserver *observer ) 1719e41f4b71Sopenharmony_ci``` 1720e41f4b71Sopenharmony_ci 1721e41f4b71Sopenharmony_ci**Description** 1722e41f4b71Sopenharmony_ci 1723e41f4b71Sopenharmony_ciUnregisters the observer of the specified type. 1724e41f4b71Sopenharmony_ci 1725e41f4b71Sopenharmony_ci**Since**: 11 1726e41f4b71Sopenharmony_ci 1727e41f4b71Sopenharmony_ci**Parameters** 1728e41f4b71Sopenharmony_ci 1729e41f4b71Sopenharmony_ci| Name | Description | 1730e41f4b71Sopenharmony_ci| -------- | -------- | 1731e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1732e41f4b71Sopenharmony_ci| type | Subscription type defined in [Rdb_SubscribeType](#rdb_subscribetype). | 1733e41f4b71Sopenharmony_ci| observer | Pointer to the [Rdb_DataObserver](_rdb___data_observer.md) instance. If this parameter is **nullptr**, all observers of this type will be unregistered. | 1734e41f4b71Sopenharmony_ci 1735e41f4b71Sopenharmony_ci**Returns** 1736e41f4b71Sopenharmony_ci 1737e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1738e41f4b71Sopenharmony_ci 1739e41f4b71Sopenharmony_ci**See** 1740e41f4b71Sopenharmony_ci 1741e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1742e41f4b71Sopenharmony_ci 1743e41f4b71Sopenharmony_ci[Rdb_DataObserver](_rdb___data_observer.md). 1744e41f4b71Sopenharmony_ci 1745e41f4b71Sopenharmony_ci 1746e41f4b71Sopenharmony_ci### OH_Rdb_UnsubscribeAutoSyncProgress() 1747e41f4b71Sopenharmony_ci 1748e41f4b71Sopenharmony_ci``` 1749e41f4b71Sopenharmony_ciint OH_Rdb_UnsubscribeAutoSyncProgress (OH_Rdb_Store *store, const Rdb_ProgressObserver *observer ) 1750e41f4b71Sopenharmony_ci``` 1751e41f4b71Sopenharmony_ci 1752e41f4b71Sopenharmony_ci**Description** 1753e41f4b71Sopenharmony_ci 1754e41f4b71Sopenharmony_ciUnsubscribes from the automatic sync process of an RDB store. 1755e41f4b71Sopenharmony_ci 1756e41f4b71Sopenharmony_ci**Since**: 11 1757e41f4b71Sopenharmony_ci 1758e41f4b71Sopenharmony_ci**Parameters** 1759e41f4b71Sopenharmony_ci 1760e41f4b71Sopenharmony_ci| Name | Description | 1761e41f4b71Sopenharmony_ci| -------- | -------- | 1762e41f4b71Sopenharmony_ci| store | Pointer to the target [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1763e41f4b71Sopenharmony_ci| observer | Pointer to [Rdb_ProgressObserver](_rdb___progress_observer.md). If the pointer is null, all callbacks for the automatic sync process will be unregistered. | 1764e41f4b71Sopenharmony_ci 1765e41f4b71Sopenharmony_ci**Returns** 1766e41f4b71Sopenharmony_ci 1767e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1768e41f4b71Sopenharmony_ci 1769e41f4b71Sopenharmony_ci**See** 1770e41f4b71Sopenharmony_ci 1771e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md). 1772e41f4b71Sopenharmony_ci 1773e41f4b71Sopenharmony_ci[Rdb_ProgressObserver](_rdb___progress_observer.md). 1774e41f4b71Sopenharmony_ci 1775e41f4b71Sopenharmony_ci 1776e41f4b71Sopenharmony_ci### OH_Rdb_Update() 1777e41f4b71Sopenharmony_ci 1778e41f4b71Sopenharmony_ci``` 1779e41f4b71Sopenharmony_ciint OH_Rdb_Update (OH_Rdb_Store *store, OH_VBucket *valuesBucket, OH_Predicates *predicates ) 1780e41f4b71Sopenharmony_ci``` 1781e41f4b71Sopenharmony_ci 1782e41f4b71Sopenharmony_ci**Description** 1783e41f4b71Sopenharmony_ci 1784e41f4b71Sopenharmony_ciUpdates data in an RDB store based on specified conditions. 1785e41f4b71Sopenharmony_ci 1786e41f4b71Sopenharmony_ci**Since**: 10 1787e41f4b71Sopenharmony_ci 1788e41f4b71Sopenharmony_ci**Parameters** 1789e41f4b71Sopenharmony_ci 1790e41f4b71Sopenharmony_ci| Name | Description | 1791e41f4b71Sopenharmony_ci| -------- | -------- | 1792e41f4b71Sopenharmony_ci| store | Pointer to the [OH_Rdb_Store](_o_h___rdb___store.md) instance. | 1793e41f4b71Sopenharmony_ci| valuesBucket | Pointer to the new data [OH_VBucket](_o_h___v_bucket.md) to be updated to the table. | 1794e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance, specifying the update conditions. | 1795e41f4b71Sopenharmony_ci 1796e41f4b71Sopenharmony_ci**Returns** 1797e41f4b71Sopenharmony_ci 1798e41f4b71Sopenharmony_ciReturns the number of affected rows if the operation is successful; returns an error code otherwise. 1799e41f4b71Sopenharmony_ci 1800e41f4b71Sopenharmony_ci**See** 1801e41f4b71Sopenharmony_ci 1802e41f4b71Sopenharmony_ci[OH_Rdb_Store](_o_h___rdb___store.md), [OH_Bucket](_o_h___v_bucket.md), [OH_Predicates](_o_h___predicates.md). 1803e41f4b71Sopenharmony_ci 1804e41f4b71Sopenharmony_ci 1805e41f4b71Sopenharmony_ci### OH_VBucket_PutAsset() 1806e41f4b71Sopenharmony_ci 1807e41f4b71Sopenharmony_ci``` 1808e41f4b71Sopenharmony_ciint OH_VBucket_PutAsset (OH_VBucket *bucket, const char *field, OH_Asset *value ) 1809e41f4b71Sopenharmony_ci``` 1810e41f4b71Sopenharmony_ci 1811e41f4b71Sopenharmony_ci**Description** 1812e41f4b71Sopenharmony_ci 1813e41f4b71Sopenharmony_ciPuts an **OH_Asset** object into the [OH_VBucket](_o_h___v_bucket.md) object with the given column name. 1814e41f4b71Sopenharmony_ci 1815e41f4b71Sopenharmony_ci**Since**: 11 1816e41f4b71Sopenharmony_ci 1817e41f4b71Sopenharmony_ci**Parameters** 1818e41f4b71Sopenharmony_ci 1819e41f4b71Sopenharmony_ci| Name | Description | 1820e41f4b71Sopenharmony_ci| -------- | -------- | 1821e41f4b71Sopenharmony_ci| bucket | Pointer to the [OH_VBucket](_o_h___v_bucket.md) instance. | 1822e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 1823e41f4b71Sopenharmony_ci| value | Pointer to the value to put. | 1824e41f4b71Sopenharmony_ci 1825e41f4b71Sopenharmony_ci**Returns** 1826e41f4b71Sopenharmony_ci 1827e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1828e41f4b71Sopenharmony_ci 1829e41f4b71Sopenharmony_ci**See** 1830e41f4b71Sopenharmony_ci 1831e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 1832e41f4b71Sopenharmony_ci 1833e41f4b71Sopenharmony_ci 1834e41f4b71Sopenharmony_ci### OH_VBucket_PutAssets() 1835e41f4b71Sopenharmony_ci 1836e41f4b71Sopenharmony_ci``` 1837e41f4b71Sopenharmony_ciint OH_VBucket_PutAssets (OH_VBucket *bucket, const char *field, OH_Asset **value, int count ) 1838e41f4b71Sopenharmony_ci``` 1839e41f4b71Sopenharmony_ci 1840e41f4b71Sopenharmony_ci**Description** 1841e41f4b71Sopenharmony_ci 1842e41f4b71Sopenharmony_ciPuts an array of **OH_Asset** objects into the [OH_VBucket](_o_h___v_bucket.md) object with the given column name. 1843e41f4b71Sopenharmony_ci 1844e41f4b71Sopenharmony_ci**Since**: 11 1845e41f4b71Sopenharmony_ci 1846e41f4b71Sopenharmony_ci**Parameters** 1847e41f4b71Sopenharmony_ci 1848e41f4b71Sopenharmony_ci| Name | Description | 1849e41f4b71Sopenharmony_ci| -------- | -------- | 1850e41f4b71Sopenharmony_ci| bucket | Pointer to the [OH_VBucket](_o_h___v_bucket.md) instance. | 1851e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 1852e41f4b71Sopenharmony_ci| value | Pointer to the value to put. | 1853e41f4b71Sopenharmony_ci| count | Number of elements in the **OH_Asset** object array. | 1854e41f4b71Sopenharmony_ci 1855e41f4b71Sopenharmony_ci**Returns** 1856e41f4b71Sopenharmony_ci 1857e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 1858e41f4b71Sopenharmony_ci 1859e41f4b71Sopenharmony_ci**See** 1860e41f4b71Sopenharmony_ci 1861e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 1862e41f4b71Sopenharmony_ci 1863e41f4b71Sopenharmony_ci## Variable Description 1864e41f4b71Sopenharmony_ci 1865e41f4b71Sopenharmony_ci 1866e41f4b71Sopenharmony_ci### andOperate 1867e41f4b71Sopenharmony_ci 1868e41f4b71Sopenharmony_ci``` 1869e41f4b71Sopenharmony_ciOH_Predicates *(*andOperate) (OH_Predicates *predicates) 1870e41f4b71Sopenharmony_ci``` 1871e41f4b71Sopenharmony_ci 1872e41f4b71Sopenharmony_ci**Description** 1873e41f4b71Sopenharmony_ci 1874e41f4b71Sopenharmony_ciPointer to the function used to add the AND operator to the predicates. 1875e41f4b71Sopenharmony_ci 1876e41f4b71Sopenharmony_ciThis method is equivalent to **AND** in SQL statements. 1877e41f4b71Sopenharmony_ci 1878e41f4b71Sopenharmony_ci**Since**: 10 1879e41f4b71Sopenharmony_ci 1880e41f4b71Sopenharmony_ci**Parameters** 1881e41f4b71Sopenharmony_ci 1882e41f4b71Sopenharmony_ci| Name | Description | 1883e41f4b71Sopenharmony_ci| -------- | -------- | 1884e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 1885e41f4b71Sopenharmony_ci 1886e41f4b71Sopenharmony_ci**Returns** 1887e41f4b71Sopenharmony_ci 1888e41f4b71Sopenharmony_ciReturns the predicates with the AND operator. 1889e41f4b71Sopenharmony_ci 1890e41f4b71Sopenharmony_ci**See** 1891e41f4b71Sopenharmony_ci 1892e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 1893e41f4b71Sopenharmony_ci 1894e41f4b71Sopenharmony_ci 1895e41f4b71Sopenharmony_ci### area 1896e41f4b71Sopenharmony_ci 1897e41f4b71Sopenharmony_ci``` 1898e41f4b71Sopenharmony_ciint OH_Rdb_Config::area 1899e41f4b71Sopenharmony_ci``` 1900e41f4b71Sopenharmony_ci 1901e41f4b71Sopenharmony_ci**Description** 1902e41f4b71Sopenharmony_ci 1903e41f4b71Sopenharmony_ciPointer to the function used to set [Rdb_SecurityArea](#rdb_securityarea). 1904e41f4b71Sopenharmony_ci 1905e41f4b71Sopenharmony_ci**Since**: 11 1906e41f4b71Sopenharmony_ci 1907e41f4b71Sopenharmony_ci 1908e41f4b71Sopenharmony_ci### beginWrap 1909e41f4b71Sopenharmony_ci 1910e41f4b71Sopenharmony_ci``` 1911e41f4b71Sopenharmony_ciOH_Predicates *(*beginWrap) (OH_Predicates *predicates) 1912e41f4b71Sopenharmony_ci``` 1913e41f4b71Sopenharmony_ci 1914e41f4b71Sopenharmony_ci**Description** 1915e41f4b71Sopenharmony_ci 1916e41f4b71Sopenharmony_ciPointer to the function used to add a left parenthesis to the predicates. 1917e41f4b71Sopenharmony_ci 1918e41f4b71Sopenharmony_ciThis method is equivalent to "(" in SQL statements. 1919e41f4b71Sopenharmony_ci 1920e41f4b71Sopenharmony_ci**Since**: 10 1921e41f4b71Sopenharmony_ci 1922e41f4b71Sopenharmony_ci**Parameters** 1923e41f4b71Sopenharmony_ci 1924e41f4b71Sopenharmony_ci| Name | Description | 1925e41f4b71Sopenharmony_ci| -------- | -------- | 1926e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 1927e41f4b71Sopenharmony_ci 1928e41f4b71Sopenharmony_ci**Returns** 1929e41f4b71Sopenharmony_ci 1930e41f4b71Sopenharmony_ciReturns the predicates with a left parenthesis. 1931e41f4b71Sopenharmony_ci 1932e41f4b71Sopenharmony_ci**See** 1933e41f4b71Sopenharmony_ci 1934e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 1935e41f4b71Sopenharmony_ci 1936e41f4b71Sopenharmony_ci 1937e41f4b71Sopenharmony_ci### between 1938e41f4b71Sopenharmony_ci 1939e41f4b71Sopenharmony_ci``` 1940e41f4b71Sopenharmony_ciOH_Predicates *(*between) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 1941e41f4b71Sopenharmony_ci``` 1942e41f4b71Sopenharmony_ci 1943e41f4b71Sopenharmony_ci**Description** 1944e41f4b71Sopenharmony_ci 1945e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field whose value is within the specified range. 1946e41f4b71Sopenharmony_ci 1947e41f4b71Sopenharmony_ciThis method is equivalent to **BETWEEN** in SQL statements. 1948e41f4b71Sopenharmony_ci 1949e41f4b71Sopenharmony_ci**Since**: 10 1950e41f4b71Sopenharmony_ci 1951e41f4b71Sopenharmony_ci**Parameters** 1952e41f4b71Sopenharmony_ci 1953e41f4b71Sopenharmony_ci| Name | Description | 1954e41f4b71Sopenharmony_ci| -------- | -------- | 1955e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 1956e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 1957e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the start and end values. | 1958e41f4b71Sopenharmony_ci 1959e41f4b71Sopenharmony_ci**Returns** 1960e41f4b71Sopenharmony_ci 1961e41f4b71Sopenharmony_ciReturns the predicates created. 1962e41f4b71Sopenharmony_ci 1963e41f4b71Sopenharmony_ci**See** 1964e41f4b71Sopenharmony_ci 1965e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 1966e41f4b71Sopenharmony_ci 1967e41f4b71Sopenharmony_ci 1968e41f4b71Sopenharmony_ci### briefObserver 1969e41f4b71Sopenharmony_ci 1970e41f4b71Sopenharmony_ci``` 1971e41f4b71Sopenharmony_ciRdb_BriefObserver Rdb_SubscribeCallback::briefObserver 1972e41f4b71Sopenharmony_ci``` 1973e41f4b71Sopenharmony_ci 1974e41f4b71Sopenharmony_ci**Description** 1975e41f4b71Sopenharmony_ci 1976e41f4b71Sopenharmony_ciCallback used to return the device-cloud data change event. 1977e41f4b71Sopenharmony_ci 1978e41f4b71Sopenharmony_ci 1979e41f4b71Sopenharmony_ci### bundleName 1980e41f4b71Sopenharmony_ci 1981e41f4b71Sopenharmony_ci``` 1982e41f4b71Sopenharmony_ciconst char* OH_Rdb_Config::bundleName 1983e41f4b71Sopenharmony_ci``` 1984e41f4b71Sopenharmony_ci 1985e41f4b71Sopenharmony_ci**Description** 1986e41f4b71Sopenharmony_ci 1987e41f4b71Sopenharmony_ciBundle name. 1988e41f4b71Sopenharmony_ci 1989e41f4b71Sopenharmony_ci 1990e41f4b71Sopenharmony_ci### callback [1/2] 1991e41f4b71Sopenharmony_ci 1992e41f4b71Sopenharmony_ci``` 1993e41f4b71Sopenharmony_ciRdb_SubscribeCallback Rdb_DataObserver::callback 1994e41f4b71Sopenharmony_ci``` 1995e41f4b71Sopenharmony_ci 1996e41f4b71Sopenharmony_ci**Description** 1997e41f4b71Sopenharmony_ci 1998e41f4b71Sopenharmony_ciCallback of the data observer. 1999e41f4b71Sopenharmony_ci 2000e41f4b71Sopenharmony_ci 2001e41f4b71Sopenharmony_ci### callback [2/2] 2002e41f4b71Sopenharmony_ci 2003e41f4b71Sopenharmony_ci``` 2004e41f4b71Sopenharmony_ciRdb_ProgressCallback Rdb_ProgressObserver::callback 2005e41f4b71Sopenharmony_ci``` 2006e41f4b71Sopenharmony_ci 2007e41f4b71Sopenharmony_ci**Description** 2008e41f4b71Sopenharmony_ci 2009e41f4b71Sopenharmony_ciCallback used to return the device-cloud sync progress. 2010e41f4b71Sopenharmony_ci 2011e41f4b71Sopenharmony_ci 2012e41f4b71Sopenharmony_ci### capability 2013e41f4b71Sopenharmony_ci 2014e41f4b71Sopenharmony_ci``` 2015e41f4b71Sopenharmony_ciuint16_t OH_VBucket::capability 2016e41f4b71Sopenharmony_ci``` 2017e41f4b71Sopenharmony_ci 2018e41f4b71Sopenharmony_ci**Description** 2019e41f4b71Sopenharmony_ci 2020e41f4b71Sopenharmony_ciNumber of the KV pairs in the struct. 2021e41f4b71Sopenharmony_ci 2022e41f4b71Sopenharmony_ci 2023e41f4b71Sopenharmony_ci### ChangeType 2024e41f4b71Sopenharmony_ci 2025e41f4b71Sopenharmony_ci``` 2026e41f4b71Sopenharmony_ciint Rdb_ChangeInfo::ChangeType 2027e41f4b71Sopenharmony_ci``` 2028e41f4b71Sopenharmony_ci 2029e41f4b71Sopenharmony_ci**Description** 2030e41f4b71Sopenharmony_ci 2031e41f4b71Sopenharmony_ciType of the data changed, which can be data or asset. 2032e41f4b71Sopenharmony_ci 2033e41f4b71Sopenharmony_ci 2034e41f4b71Sopenharmony_ci### clear [1/2] 2035e41f4b71Sopenharmony_ci 2036e41f4b71Sopenharmony_ci``` 2037e41f4b71Sopenharmony_ciOH_Predicates *(*clear) (OH_Predicates *predicates) 2038e41f4b71Sopenharmony_ci``` 2039e41f4b71Sopenharmony_ci 2040e41f4b71Sopenharmony_ci**Description** 2041e41f4b71Sopenharmony_ci 2042e41f4b71Sopenharmony_ciPointer to the function used to clear a predicates instance. 2043e41f4b71Sopenharmony_ci 2044e41f4b71Sopenharmony_ci**Since**: 10 2045e41f4b71Sopenharmony_ci 2046e41f4b71Sopenharmony_ci**Parameters** 2047e41f4b71Sopenharmony_ci 2048e41f4b71Sopenharmony_ci| Name | Description | 2049e41f4b71Sopenharmony_ci| -------- | -------- | 2050e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 2051e41f4b71Sopenharmony_ci 2052e41f4b71Sopenharmony_ci**Returns** 2053e41f4b71Sopenharmony_ci 2054e41f4b71Sopenharmony_ciReturns the cleared predicates. 2055e41f4b71Sopenharmony_ci 2056e41f4b71Sopenharmony_ci**See** 2057e41f4b71Sopenharmony_ci 2058e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 2059e41f4b71Sopenharmony_ci 2060e41f4b71Sopenharmony_ci 2061e41f4b71Sopenharmony_ci### clear [2/2] 2062e41f4b71Sopenharmony_ci 2063e41f4b71Sopenharmony_ci``` 2064e41f4b71Sopenharmony_ciint(*clear) (OH_VBucket *bucket) 2065e41f4b71Sopenharmony_ci``` 2066e41f4b71Sopenharmony_ci 2067e41f4b71Sopenharmony_ci**Description** 2068e41f4b71Sopenharmony_ci 2069e41f4b71Sopenharmony_ciPointer to the function used to clear an [OH_VBucket](_o_h___v_bucket.md) object. 2070e41f4b71Sopenharmony_ci 2071e41f4b71Sopenharmony_ci**Since**: 10 2072e41f4b71Sopenharmony_ci 2073e41f4b71Sopenharmony_ci**Parameters** 2074e41f4b71Sopenharmony_ci 2075e41f4b71Sopenharmony_ci| Name | Description | 2076e41f4b71Sopenharmony_ci| -------- | -------- | 2077e41f4b71Sopenharmony_ci| bucket | Pointer to the [OH_VBucket](_o_h___v_bucket.md) instance. | 2078e41f4b71Sopenharmony_ci 2079e41f4b71Sopenharmony_ci**Returns** 2080e41f4b71Sopenharmony_ci 2081e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2082e41f4b71Sopenharmony_ci 2083e41f4b71Sopenharmony_ci**See** 2084e41f4b71Sopenharmony_ci 2085e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 2086e41f4b71Sopenharmony_ci 2087e41f4b71Sopenharmony_ci 2088e41f4b71Sopenharmony_ci### code 2089e41f4b71Sopenharmony_ci 2090e41f4b71Sopenharmony_ci``` 2091e41f4b71Sopenharmony_ciint Rdb_ProgressDetails::code 2092e41f4b71Sopenharmony_ci``` 2093e41f4b71Sopenharmony_ci 2094e41f4b71Sopenharmony_ci**Description** 2095e41f4b71Sopenharmony_ci 2096e41f4b71Sopenharmony_ciDevice-cloud sync state. 2097e41f4b71Sopenharmony_ci 2098e41f4b71Sopenharmony_ci 2099e41f4b71Sopenharmony_ci### context [1/2] 2100e41f4b71Sopenharmony_ci 2101e41f4b71Sopenharmony_ci``` 2102e41f4b71Sopenharmony_civoid* Rdb_DataObserver::context 2103e41f4b71Sopenharmony_ci``` 2104e41f4b71Sopenharmony_ci 2105e41f4b71Sopenharmony_ci**Description** 2106e41f4b71Sopenharmony_ci 2107e41f4b71Sopenharmony_ciContext of the data observer. 2108e41f4b71Sopenharmony_ci 2109e41f4b71Sopenharmony_ci 2110e41f4b71Sopenharmony_ci### context [2/2] 2111e41f4b71Sopenharmony_ci 2112e41f4b71Sopenharmony_ci``` 2113e41f4b71Sopenharmony_civoid* Rdb_ProgressObserver::context 2114e41f4b71Sopenharmony_ci``` 2115e41f4b71Sopenharmony_ci 2116e41f4b71Sopenharmony_ci**Description** 2117e41f4b71Sopenharmony_ci 2118e41f4b71Sopenharmony_ciContext of the device-cloud sync progress observer. 2119e41f4b71Sopenharmony_ci 2120e41f4b71Sopenharmony_ci 2121e41f4b71Sopenharmony_ci### count 2122e41f4b71Sopenharmony_ci 2123e41f4b71Sopenharmony_ci``` 2124e41f4b71Sopenharmony_ciint Rdb_KeyInfo::count 2125e41f4b71Sopenharmony_ci``` 2126e41f4b71Sopenharmony_ci 2127e41f4b71Sopenharmony_ci**Description** 2128e41f4b71Sopenharmony_ci 2129e41f4b71Sopenharmony_ciNumber of changed primary keys or row numbers. 2130e41f4b71Sopenharmony_ci 2131e41f4b71Sopenharmony_ci 2132e41f4b71Sopenharmony_ci### dataBaseDir 2133e41f4b71Sopenharmony_ci 2134e41f4b71Sopenharmony_ci``` 2135e41f4b71Sopenharmony_ciconst char* OH_Rdb_Config::dataBaseDir 2136e41f4b71Sopenharmony_ci``` 2137e41f4b71Sopenharmony_ci 2138e41f4b71Sopenharmony_ci**Description** 2139e41f4b71Sopenharmony_ci 2140e41f4b71Sopenharmony_ciPath of the database file. 2141e41f4b71Sopenharmony_ci 2142e41f4b71Sopenharmony_ci 2143e41f4b71Sopenharmony_ci### deleted 2144e41f4b71Sopenharmony_ci 2145e41f4b71Sopenharmony_ci``` 2146e41f4b71Sopenharmony_ciRdb_KeyInfo Rdb_ChangeInfo::deleted 2147e41f4b71Sopenharmony_ci``` 2148e41f4b71Sopenharmony_ci 2149e41f4b71Sopenharmony_ci**Description** 2150e41f4b71Sopenharmony_ci 2151e41f4b71Sopenharmony_ciLocation where data is deleted. If the primary key of the table is of the string type, the value is the value of the primary key. Otherwise, the value is the row number of the deleted data. 2152e41f4b71Sopenharmony_ci 2153e41f4b71Sopenharmony_ci 2154e41f4b71Sopenharmony_ci### destroy [1/4] 2155e41f4b71Sopenharmony_ci 2156e41f4b71Sopenharmony_ci``` 2157e41f4b71Sopenharmony_ciint(*destroy) (OH_Cursor *cursor) 2158e41f4b71Sopenharmony_ci``` 2159e41f4b71Sopenharmony_ci 2160e41f4b71Sopenharmony_ci**Description** 2161e41f4b71Sopenharmony_ci 2162e41f4b71Sopenharmony_ciPointer to the function used to destroy a result set. 2163e41f4b71Sopenharmony_ci 2164e41f4b71Sopenharmony_ci**Since**: 10 2165e41f4b71Sopenharmony_ci 2166e41f4b71Sopenharmony_ci**Parameters** 2167e41f4b71Sopenharmony_ci 2168e41f4b71Sopenharmony_ci| Name | Description | 2169e41f4b71Sopenharmony_ci| -------- | -------- | 2170e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2171e41f4b71Sopenharmony_ci 2172e41f4b71Sopenharmony_ci**Returns** 2173e41f4b71Sopenharmony_ci 2174e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2175e41f4b71Sopenharmony_ci 2176e41f4b71Sopenharmony_ci**See** 2177e41f4b71Sopenharmony_ci 2178e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2179e41f4b71Sopenharmony_ci 2180e41f4b71Sopenharmony_ci 2181e41f4b71Sopenharmony_ci### destroy [2/4] 2182e41f4b71Sopenharmony_ci 2183e41f4b71Sopenharmony_ci``` 2184e41f4b71Sopenharmony_ciint(*destroy) (OH_Predicates *predicates) 2185e41f4b71Sopenharmony_ci``` 2186e41f4b71Sopenharmony_ci 2187e41f4b71Sopenharmony_ci**Description** 2188e41f4b71Sopenharmony_ci 2189e41f4b71Sopenharmony_ciPointer to the function used to destroy an [OH_Predicates](_o_h___predicates.md) object to reclaim the memory occupied. 2190e41f4b71Sopenharmony_ci 2191e41f4b71Sopenharmony_ci**Since**: 10 2192e41f4b71Sopenharmony_ci 2193e41f4b71Sopenharmony_ci**Parameters** 2194e41f4b71Sopenharmony_ci 2195e41f4b71Sopenharmony_ci| Name | Description | 2196e41f4b71Sopenharmony_ci| -------- | -------- | 2197e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 2198e41f4b71Sopenharmony_ci 2199e41f4b71Sopenharmony_ci**Returns** 2200e41f4b71Sopenharmony_ci 2201e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2202e41f4b71Sopenharmony_ci 2203e41f4b71Sopenharmony_ci**See** 2204e41f4b71Sopenharmony_ci 2205e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 2206e41f4b71Sopenharmony_ci 2207e41f4b71Sopenharmony_ci 2208e41f4b71Sopenharmony_ci### destroy [3/4] 2209e41f4b71Sopenharmony_ci 2210e41f4b71Sopenharmony_ci``` 2211e41f4b71Sopenharmony_ciint(*destroy) (OH_VBucket *bucket) 2212e41f4b71Sopenharmony_ci``` 2213e41f4b71Sopenharmony_ci 2214e41f4b71Sopenharmony_ci**Description** 2215e41f4b71Sopenharmony_ci 2216e41f4b71Sopenharmony_ciPointer to the function used to destroy an [OH_VBucket](_o_h___v_bucket.md) object to reclaim the memory occupied. 2217e41f4b71Sopenharmony_ci 2218e41f4b71Sopenharmony_ci**Since**: 10 2219e41f4b71Sopenharmony_ci 2220e41f4b71Sopenharmony_ci**Parameters** 2221e41f4b71Sopenharmony_ci 2222e41f4b71Sopenharmony_ci| Name | Description | 2223e41f4b71Sopenharmony_ci| -------- | -------- | 2224e41f4b71Sopenharmony_ci| bucket | Pointer to the [OH_VBucket](_o_h___v_bucket.md) instance. | 2225e41f4b71Sopenharmony_ci 2226e41f4b71Sopenharmony_ci**Returns** 2227e41f4b71Sopenharmony_ci 2228e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2229e41f4b71Sopenharmony_ci 2230e41f4b71Sopenharmony_ci**See** 2231e41f4b71Sopenharmony_ci 2232e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 2233e41f4b71Sopenharmony_ci 2234e41f4b71Sopenharmony_ci 2235e41f4b71Sopenharmony_ci### destroy [4/4] 2236e41f4b71Sopenharmony_ci 2237e41f4b71Sopenharmony_ci``` 2238e41f4b71Sopenharmony_ciint(*destroy) (OH_VObject *valueObject) 2239e41f4b71Sopenharmony_ci``` 2240e41f4b71Sopenharmony_ci 2241e41f4b71Sopenharmony_ci**Description** 2242e41f4b71Sopenharmony_ci 2243e41f4b71Sopenharmony_ciPointer to the function used to destroy an [OH_VObject](_o_h___v_object.md) object to reclaim the memory occupied. 2244e41f4b71Sopenharmony_ci 2245e41f4b71Sopenharmony_ci**Since**: 10 2246e41f4b71Sopenharmony_ci 2247e41f4b71Sopenharmony_ci**Parameters** 2248e41f4b71Sopenharmony_ci 2249e41f4b71Sopenharmony_ci| Name | Description | 2250e41f4b71Sopenharmony_ci| -------- | -------- | 2251e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance. | 2252e41f4b71Sopenharmony_ci 2253e41f4b71Sopenharmony_ci**Returns** 2254e41f4b71Sopenharmony_ci 2255e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2256e41f4b71Sopenharmony_ci 2257e41f4b71Sopenharmony_ci**See** 2258e41f4b71Sopenharmony_ci 2259e41f4b71Sopenharmony_ci[OH_VObject](_o_h___v_object.md). 2260e41f4b71Sopenharmony_ci 2261e41f4b71Sopenharmony_ci 2262e41f4b71Sopenharmony_ci### detailsObserver 2263e41f4b71Sopenharmony_ci 2264e41f4b71Sopenharmony_ci``` 2265e41f4b71Sopenharmony_ciRdb_DetailsObserver Rdb_SubscribeCallback::detailsObserver 2266e41f4b71Sopenharmony_ci``` 2267e41f4b71Sopenharmony_ci 2268e41f4b71Sopenharmony_ci**Description** 2269e41f4b71Sopenharmony_ci 2270e41f4b71Sopenharmony_ciCallback used to return the details about the device-cloud data change. 2271e41f4b71Sopenharmony_ci 2272e41f4b71Sopenharmony_ci 2273e41f4b71Sopenharmony_ci### distinct 2274e41f4b71Sopenharmony_ci 2275e41f4b71Sopenharmony_ci``` 2276e41f4b71Sopenharmony_ciOH_Predicates *(*distinct) (OH_Predicates *predicates) 2277e41f4b71Sopenharmony_ci``` 2278e41f4b71Sopenharmony_ci 2279e41f4b71Sopenharmony_ci**Description** 2280e41f4b71Sopenharmony_ci 2281e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to filter out duplicate records. 2282e41f4b71Sopenharmony_ci 2283e41f4b71Sopenharmony_ciThis method is equivalent to **DISTINCT** in SQL statements. 2284e41f4b71Sopenharmony_ci 2285e41f4b71Sopenharmony_ci**Since**: 10 2286e41f4b71Sopenharmony_ci 2287e41f4b71Sopenharmony_ci**Parameters** 2288e41f4b71Sopenharmony_ci 2289e41f4b71Sopenharmony_ci| Name | Description | 2290e41f4b71Sopenharmony_ci| -------- | -------- | 2291e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 2292e41f4b71Sopenharmony_ci 2293e41f4b71Sopenharmony_ci**Returns** 2294e41f4b71Sopenharmony_ci 2295e41f4b71Sopenharmony_ciReturns the predicates created. 2296e41f4b71Sopenharmony_ci 2297e41f4b71Sopenharmony_ci**See** 2298e41f4b71Sopenharmony_ci 2299e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 2300e41f4b71Sopenharmony_ci 2301e41f4b71Sopenharmony_ci 2302e41f4b71Sopenharmony_ci### download 2303e41f4b71Sopenharmony_ci 2304e41f4b71Sopenharmony_ci``` 2305e41f4b71Sopenharmony_ciRdb_Statistic Rdb_TableDetails::download 2306e41f4b71Sopenharmony_ci``` 2307e41f4b71Sopenharmony_ci 2308e41f4b71Sopenharmony_ci**Description** 2309e41f4b71Sopenharmony_ci 2310e41f4b71Sopenharmony_ciStatistics of the device-cloud download tasks. 2311e41f4b71Sopenharmony_ci 2312e41f4b71Sopenharmony_ci 2313e41f4b71Sopenharmony_ci### endWrap 2314e41f4b71Sopenharmony_ci 2315e41f4b71Sopenharmony_ci``` 2316e41f4b71Sopenharmony_ciOH_Predicates *(*endWrap) (OH_Predicates *predicates) 2317e41f4b71Sopenharmony_ci``` 2318e41f4b71Sopenharmony_ci 2319e41f4b71Sopenharmony_ci**Description** 2320e41f4b71Sopenharmony_ci 2321e41f4b71Sopenharmony_ciPointer to the function used to add a right parenthesis to the predicates. 2322e41f4b71Sopenharmony_ci 2323e41f4b71Sopenharmony_ciThis method is equivalent to ")" in SQL statements. 2324e41f4b71Sopenharmony_ci 2325e41f4b71Sopenharmony_ci**Since**: 10 2326e41f4b71Sopenharmony_ci 2327e41f4b71Sopenharmony_ci**Parameters** 2328e41f4b71Sopenharmony_ci 2329e41f4b71Sopenharmony_ci| Name | Description | 2330e41f4b71Sopenharmony_ci| -------- | -------- | 2331e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 2332e41f4b71Sopenharmony_ci 2333e41f4b71Sopenharmony_ci**Returns** 2334e41f4b71Sopenharmony_ci 2335e41f4b71Sopenharmony_ciReturns the predicates object with a right parenthesis. 2336e41f4b71Sopenharmony_ci 2337e41f4b71Sopenharmony_ci**See** 2338e41f4b71Sopenharmony_ci 2339e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 2340e41f4b71Sopenharmony_ci 2341e41f4b71Sopenharmony_ci 2342e41f4b71Sopenharmony_ci### equalTo 2343e41f4b71Sopenharmony_ci 2344e41f4b71Sopenharmony_ci``` 2345e41f4b71Sopenharmony_ciOH_Predicates *(*equalTo) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 2346e41f4b71Sopenharmony_ci``` 2347e41f4b71Sopenharmony_ci 2348e41f4b71Sopenharmony_ci**Description** 2349e41f4b71Sopenharmony_ci 2350e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field whose value is equal to the specified value. 2351e41f4b71Sopenharmony_ci 2352e41f4b71Sopenharmony_ciThis method is equivalent to "=" in SQL statements. 2353e41f4b71Sopenharmony_ci 2354e41f4b71Sopenharmony_ci**Since**: 10 2355e41f4b71Sopenharmony_ci 2356e41f4b71Sopenharmony_ci**Parameters** 2357e41f4b71Sopenharmony_ci 2358e41f4b71Sopenharmony_ci| Name | Description | 2359e41f4b71Sopenharmony_ci| -------- | -------- | 2360e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 2361e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 2362e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value to match.| 2363e41f4b71Sopenharmony_ci 2364e41f4b71Sopenharmony_ci**Returns** 2365e41f4b71Sopenharmony_ci 2366e41f4b71Sopenharmony_ciReturns the predicates created. 2367e41f4b71Sopenharmony_ci 2368e41f4b71Sopenharmony_ci**See** 2369e41f4b71Sopenharmony_ci 2370e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 2371e41f4b71Sopenharmony_ci 2372e41f4b71Sopenharmony_ci 2373e41f4b71Sopenharmony_ci### failed 2374e41f4b71Sopenharmony_ci 2375e41f4b71Sopenharmony_ci``` 2376e41f4b71Sopenharmony_ciint Rdb_Statistic::failed 2377e41f4b71Sopenharmony_ci``` 2378e41f4b71Sopenharmony_ci 2379e41f4b71Sopenharmony_ci**Description** 2380e41f4b71Sopenharmony_ci 2381e41f4b71Sopenharmony_ciNumber of rows that failed to be synchronized between the device and cloud in the database table. 2382e41f4b71Sopenharmony_ci 2383e41f4b71Sopenharmony_ci 2384e41f4b71Sopenharmony_ci### getAsset 2385e41f4b71Sopenharmony_ci 2386e41f4b71Sopenharmony_ci``` 2387e41f4b71Sopenharmony_ciint(*getAsset) (OH_Cursor *cursor, int32_t columnIndex, Data_Asset *value) 2388e41f4b71Sopenharmony_ci``` 2389e41f4b71Sopenharmony_ci 2390e41f4b71Sopenharmony_ci**Description** 2391e41f4b71Sopenharmony_ci 2392e41f4b71Sopenharmony_ciPointer to the function used to obtain the value of the asset type based on the specified column and the current row. 2393e41f4b71Sopenharmony_ci 2394e41f4b71Sopenharmony_ci**Since**: 11 2395e41f4b71Sopenharmony_ci 2396e41f4b71Sopenharmony_ci**Parameters** 2397e41f4b71Sopenharmony_ci 2398e41f4b71Sopenharmony_ci| Name | Description | 2399e41f4b71Sopenharmony_ci| -------- | -------- | 2400e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2401e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 2402e41f4b71Sopenharmony_ci| value | Pointer to the value obtained. | 2403e41f4b71Sopenharmony_ci 2404e41f4b71Sopenharmony_ci**Returns** 2405e41f4b71Sopenharmony_ci 2406e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2407e41f4b71Sopenharmony_ci 2408e41f4b71Sopenharmony_ci**See** 2409e41f4b71Sopenharmony_ci 2410e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2411e41f4b71Sopenharmony_ci 2412e41f4b71Sopenharmony_ci 2413e41f4b71Sopenharmony_ci### getAssets 2414e41f4b71Sopenharmony_ci 2415e41f4b71Sopenharmony_ci``` 2416e41f4b71Sopenharmony_ciint(*getAssets) (OH_Cursor *cursor, int32_t columnIndex, Data_Asset **value, uint32_t length) 2417e41f4b71Sopenharmony_ci``` 2418e41f4b71Sopenharmony_ci 2419e41f4b71Sopenharmony_ci**Description** 2420e41f4b71Sopenharmony_ci 2421e41f4b71Sopenharmony_ciPointer to the function used to obtain the values in the form of an asset array based on the specified column and the current row. 2422e41f4b71Sopenharmony_ci 2423e41f4b71Sopenharmony_ci**Since**: 11 2424e41f4b71Sopenharmony_ci 2425e41f4b71Sopenharmony_ci**Parameters** 2426e41f4b71Sopenharmony_ci 2427e41f4b71Sopenharmony_ci| Name | Description | 2428e41f4b71Sopenharmony_ci| -------- | -------- | 2429e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2430e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 2431e41f4b71Sopenharmony_ci| value | Pointer to the value obtained. | 2432e41f4b71Sopenharmony_ci| length | Length of an asset array. | 2433e41f4b71Sopenharmony_ci 2434e41f4b71Sopenharmony_ci**Returns** 2435e41f4b71Sopenharmony_ci 2436e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2437e41f4b71Sopenharmony_ci 2438e41f4b71Sopenharmony_ci**See** 2439e41f4b71Sopenharmony_ci 2440e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2441e41f4b71Sopenharmony_ci 2442e41f4b71Sopenharmony_ci 2443e41f4b71Sopenharmony_ci### getBlob 2444e41f4b71Sopenharmony_ci 2445e41f4b71Sopenharmony_ci``` 2446e41f4b71Sopenharmony_ciint(*getBlob) (OH_Cursor *cursor, int32_t columnIndex, unsigned char *value, int length) 2447e41f4b71Sopenharmony_ci``` 2448e41f4b71Sopenharmony_ci 2449e41f4b71Sopenharmony_ci**Description** 2450e41f4b71Sopenharmony_ci 2451e41f4b71Sopenharmony_ciPointer to the function used to obtain the values in the form of a byte array based on the specified column and the current row. 2452e41f4b71Sopenharmony_ci 2453e41f4b71Sopenharmony_ci**Since**: 10 2454e41f4b71Sopenharmony_ci 2455e41f4b71Sopenharmony_ci**Parameters** 2456e41f4b71Sopenharmony_ci 2457e41f4b71Sopenharmony_ci| Name | Description | 2458e41f4b71Sopenharmony_ci| -------- | -------- | 2459e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2460e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 2461e41f4b71Sopenharmony_ci| value | Pointer to the values in the form of a byte array obtained. | 2462e41f4b71Sopenharmony_ci| length | Length of the value, which can be obtained by **getSize()**. | 2463e41f4b71Sopenharmony_ci 2464e41f4b71Sopenharmony_ci**Returns** 2465e41f4b71Sopenharmony_ci 2466e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2467e41f4b71Sopenharmony_ci 2468e41f4b71Sopenharmony_ci**See** 2469e41f4b71Sopenharmony_ci 2470e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2471e41f4b71Sopenharmony_ci 2472e41f4b71Sopenharmony_ci 2473e41f4b71Sopenharmony_ci### getColumnCount 2474e41f4b71Sopenharmony_ci 2475e41f4b71Sopenharmony_ci``` 2476e41f4b71Sopenharmony_ciint(*getColumnCount) (OH_Cursor *cursor, int *count) 2477e41f4b71Sopenharmony_ci``` 2478e41f4b71Sopenharmony_ci 2479e41f4b71Sopenharmony_ci**Description** 2480e41f4b71Sopenharmony_ci 2481e41f4b71Sopenharmony_ciPointer to the function used to obtain the number of columns in the result set. 2482e41f4b71Sopenharmony_ci 2483e41f4b71Sopenharmony_ci**Since**: 10 2484e41f4b71Sopenharmony_ci 2485e41f4b71Sopenharmony_ci**Parameters** 2486e41f4b71Sopenharmony_ci 2487e41f4b71Sopenharmony_ci| Name | Description | 2488e41f4b71Sopenharmony_ci| -------- | -------- | 2489e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2490e41f4b71Sopenharmony_ci| count | Pointer to the number of columns in the result set obtained. | 2491e41f4b71Sopenharmony_ci 2492e41f4b71Sopenharmony_ci**Returns** 2493e41f4b71Sopenharmony_ci 2494e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2495e41f4b71Sopenharmony_ci 2496e41f4b71Sopenharmony_ci**See** 2497e41f4b71Sopenharmony_ci 2498e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2499e41f4b71Sopenharmony_ci 2500e41f4b71Sopenharmony_ci 2501e41f4b71Sopenharmony_ci### getColumnIndex 2502e41f4b71Sopenharmony_ci 2503e41f4b71Sopenharmony_ci``` 2504e41f4b71Sopenharmony_ciint(*getColumnIndex) (OH_Cursor *cursor, const char *name, int *columnIndex) 2505e41f4b71Sopenharmony_ci``` 2506e41f4b71Sopenharmony_ci 2507e41f4b71Sopenharmony_ci**Description** 2508e41f4b71Sopenharmony_ci 2509e41f4b71Sopenharmony_ciPointer to the function used to obtain the column index based on the specified column name. 2510e41f4b71Sopenharmony_ci 2511e41f4b71Sopenharmony_ci**Since**: 10 2512e41f4b71Sopenharmony_ci 2513e41f4b71Sopenharmony_ci**Parameters** 2514e41f4b71Sopenharmony_ci 2515e41f4b71Sopenharmony_ci| Name | Description | 2516e41f4b71Sopenharmony_ci| -------- | -------- | 2517e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2518e41f4b71Sopenharmony_ci| name | Pointer to the column name in the result set. | 2519e41f4b71Sopenharmony_ci| columnIndex | Pointer to the column index obtained. | 2520e41f4b71Sopenharmony_ci 2521e41f4b71Sopenharmony_ci**Returns** 2522e41f4b71Sopenharmony_ci 2523e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2524e41f4b71Sopenharmony_ci 2525e41f4b71Sopenharmony_ci**See** 2526e41f4b71Sopenharmony_ci 2527e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2528e41f4b71Sopenharmony_ci 2529e41f4b71Sopenharmony_ci 2530e41f4b71Sopenharmony_ci### getColumnName 2531e41f4b71Sopenharmony_ci 2532e41f4b71Sopenharmony_ci``` 2533e41f4b71Sopenharmony_ciint(*getColumnName) (OH_Cursor *cursor, int32_t columnIndex, char *name, int length) 2534e41f4b71Sopenharmony_ci``` 2535e41f4b71Sopenharmony_ci 2536e41f4b71Sopenharmony_ci**Description** 2537e41f4b71Sopenharmony_ci 2538e41f4b71Sopenharmony_ciPointer to the function used to obtain the column name based on the specified column index. 2539e41f4b71Sopenharmony_ci 2540e41f4b71Sopenharmony_ci**Since**: 10 2541e41f4b71Sopenharmony_ci 2542e41f4b71Sopenharmony_ci**Parameters** 2543e41f4b71Sopenharmony_ci 2544e41f4b71Sopenharmony_ci| Name | Description | 2545e41f4b71Sopenharmony_ci| -------- | -------- | 2546e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2547e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 2548e41f4b71Sopenharmony_ci| name | Pointer to the column name obtained. | 2549e41f4b71Sopenharmony_ci| length | Length of a column name. | 2550e41f4b71Sopenharmony_ci 2551e41f4b71Sopenharmony_ci**Returns** 2552e41f4b71Sopenharmony_ci 2553e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2554e41f4b71Sopenharmony_ci 2555e41f4b71Sopenharmony_ci**See** 2556e41f4b71Sopenharmony_ci 2557e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2558e41f4b71Sopenharmony_ci 2559e41f4b71Sopenharmony_ci 2560e41f4b71Sopenharmony_ci### getColumnType 2561e41f4b71Sopenharmony_ci 2562e41f4b71Sopenharmony_ci``` 2563e41f4b71Sopenharmony_ciint(*getColumnType) (OH_Cursor *cursor, int32_t columnIndex, OH_ColumnType *columnType) 2564e41f4b71Sopenharmony_ci``` 2565e41f4b71Sopenharmony_ci 2566e41f4b71Sopenharmony_ci**Description** 2567e41f4b71Sopenharmony_ci 2568e41f4b71Sopenharmony_ciPointer to the function used to obtain the column type based on the specified column index. 2569e41f4b71Sopenharmony_ci 2570e41f4b71Sopenharmony_ci**Since**: 10 2571e41f4b71Sopenharmony_ci 2572e41f4b71Sopenharmony_ci**Parameters** 2573e41f4b71Sopenharmony_ci 2574e41f4b71Sopenharmony_ci| Name | Description | 2575e41f4b71Sopenharmony_ci| -------- | -------- | 2576e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2577e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 2578e41f4b71Sopenharmony_ci| columnType | Pointer to the [OH_ColumnType](#oh_columntype) obtained. | 2579e41f4b71Sopenharmony_ci 2580e41f4b71Sopenharmony_ci**Returns** 2581e41f4b71Sopenharmony_ci 2582e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2583e41f4b71Sopenharmony_ci 2584e41f4b71Sopenharmony_ci**See** 2585e41f4b71Sopenharmony_ci 2586e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md), [OH_ColumnType](#oh_columntype). 2587e41f4b71Sopenharmony_ci 2588e41f4b71Sopenharmony_ci 2589e41f4b71Sopenharmony_ci### getInt64 2590e41f4b71Sopenharmony_ci 2591e41f4b71Sopenharmony_ci``` 2592e41f4b71Sopenharmony_ciint(*getInt64) (OH_Cursor *cursor, int32_t columnIndex, int64_t *value) 2593e41f4b71Sopenharmony_ci``` 2594e41f4b71Sopenharmony_ci 2595e41f4b71Sopenharmony_ci**Description** 2596e41f4b71Sopenharmony_ci 2597e41f4b71Sopenharmony_ciPointer to the function used to obtain the value of the int64_t type based on the specified column and the current row. 2598e41f4b71Sopenharmony_ci 2599e41f4b71Sopenharmony_ci**Since**: 10 2600e41f4b71Sopenharmony_ci 2601e41f4b71Sopenharmony_ci**Parameters** 2602e41f4b71Sopenharmony_ci 2603e41f4b71Sopenharmony_ci| Name | Description | 2604e41f4b71Sopenharmony_ci| -------- | -------- | 2605e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2606e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 2607e41f4b71Sopenharmony_ci| value | Pointer to the value obtained. | 2608e41f4b71Sopenharmony_ci 2609e41f4b71Sopenharmony_ci**Returns** 2610e41f4b71Sopenharmony_ci 2611e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2612e41f4b71Sopenharmony_ci 2613e41f4b71Sopenharmony_ci**See** 2614e41f4b71Sopenharmony_ci 2615e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2616e41f4b71Sopenharmony_ci 2617e41f4b71Sopenharmony_ci 2618e41f4b71Sopenharmony_ci### getReal 2619e41f4b71Sopenharmony_ci 2620e41f4b71Sopenharmony_ci``` 2621e41f4b71Sopenharmony_ciint(*getReal) (OH_Cursor *cursor, int32_t columnIndex, double *value) 2622e41f4b71Sopenharmony_ci``` 2623e41f4b71Sopenharmony_ci 2624e41f4b71Sopenharmony_ci**Description** 2625e41f4b71Sopenharmony_ci 2626e41f4b71Sopenharmony_ciPointer to the function used to obtain the value of the double type based on the specified column and the current row. 2627e41f4b71Sopenharmony_ci 2628e41f4b71Sopenharmony_ci**Since**: 10 2629e41f4b71Sopenharmony_ci 2630e41f4b71Sopenharmony_ci**Parameters** 2631e41f4b71Sopenharmony_ci 2632e41f4b71Sopenharmony_ci| Name | Description | 2633e41f4b71Sopenharmony_ci| -------- | -------- | 2634e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2635e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 2636e41f4b71Sopenharmony_ci| value | Pointer to the value obtained. | 2637e41f4b71Sopenharmony_ci 2638e41f4b71Sopenharmony_ci**Returns** 2639e41f4b71Sopenharmony_ci 2640e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2641e41f4b71Sopenharmony_ci 2642e41f4b71Sopenharmony_ci**See** 2643e41f4b71Sopenharmony_ci 2644e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2645e41f4b71Sopenharmony_ci 2646e41f4b71Sopenharmony_ci 2647e41f4b71Sopenharmony_ci### getRowCount 2648e41f4b71Sopenharmony_ci 2649e41f4b71Sopenharmony_ci``` 2650e41f4b71Sopenharmony_ciint(*getRowCount) (OH_Cursor *cursor, int *count) 2651e41f4b71Sopenharmony_ci``` 2652e41f4b71Sopenharmony_ci 2653e41f4b71Sopenharmony_ci**Description** 2654e41f4b71Sopenharmony_ci 2655e41f4b71Sopenharmony_ciPointer to the function used to obtain the number of rows in the result set. 2656e41f4b71Sopenharmony_ci 2657e41f4b71Sopenharmony_ci**Since**: 10 2658e41f4b71Sopenharmony_ci 2659e41f4b71Sopenharmony_ci**Parameters** 2660e41f4b71Sopenharmony_ci 2661e41f4b71Sopenharmony_ci| Name | Description | 2662e41f4b71Sopenharmony_ci| -------- | -------- | 2663e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2664e41f4b71Sopenharmony_ci| count | Pointer to the number of columns in the result set obtained. | 2665e41f4b71Sopenharmony_ci 2666e41f4b71Sopenharmony_ci**Returns** 2667e41f4b71Sopenharmony_ci 2668e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2669e41f4b71Sopenharmony_ci 2670e41f4b71Sopenharmony_ci**See** 2671e41f4b71Sopenharmony_ci 2672e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2673e41f4b71Sopenharmony_ci 2674e41f4b71Sopenharmony_ci 2675e41f4b71Sopenharmony_ci### getSize 2676e41f4b71Sopenharmony_ci 2677e41f4b71Sopenharmony_ci``` 2678e41f4b71Sopenharmony_ciint(*getSize) (OH_Cursor *cursor, int32_t columnIndex, size_t *size) 2679e41f4b71Sopenharmony_ci``` 2680e41f4b71Sopenharmony_ci 2681e41f4b71Sopenharmony_ci**Description** 2682e41f4b71Sopenharmony_ci 2683e41f4b71Sopenharmony_ciPointer to the function used to obtain information about the memory required when the column data type in the result set is **BLOB** or **TEXT**. 2684e41f4b71Sopenharmony_ci 2685e41f4b71Sopenharmony_ci**Since**: 10 2686e41f4b71Sopenharmony_ci 2687e41f4b71Sopenharmony_ci**Parameters** 2688e41f4b71Sopenharmony_ci 2689e41f4b71Sopenharmony_ci| Name | Description | 2690e41f4b71Sopenharmony_ci| -------- | -------- | 2691e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2692e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 2693e41f4b71Sopenharmony_ci| size | Pointer to the memory size obtained. | 2694e41f4b71Sopenharmony_ci 2695e41f4b71Sopenharmony_ci**Returns** 2696e41f4b71Sopenharmony_ci 2697e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2698e41f4b71Sopenharmony_ci 2699e41f4b71Sopenharmony_ci**See** 2700e41f4b71Sopenharmony_ci 2701e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2702e41f4b71Sopenharmony_ci 2703e41f4b71Sopenharmony_ci 2704e41f4b71Sopenharmony_ci### getText 2705e41f4b71Sopenharmony_ci 2706e41f4b71Sopenharmony_ci``` 2707e41f4b71Sopenharmony_ciint(*getText) (OH_Cursor *cursor, int32_t columnIndex, char *value, int length) 2708e41f4b71Sopenharmony_ci``` 2709e41f4b71Sopenharmony_ci 2710e41f4b71Sopenharmony_ci**Description** 2711e41f4b71Sopenharmony_ci 2712e41f4b71Sopenharmony_ciPointer to the function used to obtain the value of the string type based on the specified column and the current row. 2713e41f4b71Sopenharmony_ci 2714e41f4b71Sopenharmony_ci**Since**: 10 2715e41f4b71Sopenharmony_ci 2716e41f4b71Sopenharmony_ci**Parameters** 2717e41f4b71Sopenharmony_ci 2718e41f4b71Sopenharmony_ci| Name | Description | 2719e41f4b71Sopenharmony_ci| -------- | -------- | 2720e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2721e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 2722e41f4b71Sopenharmony_ci| value | Pointer to the value of the string type obtained. | 2723e41f4b71Sopenharmony_ci| length | Length of the value, which can be obtained by **getSize()**. | 2724e41f4b71Sopenharmony_ci 2725e41f4b71Sopenharmony_ci**Returns** 2726e41f4b71Sopenharmony_ci 2727e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2728e41f4b71Sopenharmony_ci 2729e41f4b71Sopenharmony_ci**See** 2730e41f4b71Sopenharmony_ci 2731e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2732e41f4b71Sopenharmony_ci 2733e41f4b71Sopenharmony_ci 2734e41f4b71Sopenharmony_ci### goToNextRow 2735e41f4b71Sopenharmony_ci 2736e41f4b71Sopenharmony_ci``` 2737e41f4b71Sopenharmony_ciint(*goToNextRow) (OH_Cursor *cursor) 2738e41f4b71Sopenharmony_ci``` 2739e41f4b71Sopenharmony_ci 2740e41f4b71Sopenharmony_ci**Description** 2741e41f4b71Sopenharmony_ci 2742e41f4b71Sopenharmony_ciPointer to the function used to go to the next row of the result set. 2743e41f4b71Sopenharmony_ci 2744e41f4b71Sopenharmony_ci**Since**: 10 2745e41f4b71Sopenharmony_ci 2746e41f4b71Sopenharmony_ci**Parameters** 2747e41f4b71Sopenharmony_ci 2748e41f4b71Sopenharmony_ci| Name | Description | 2749e41f4b71Sopenharmony_ci| -------- | -------- | 2750e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 2751e41f4b71Sopenharmony_ci 2752e41f4b71Sopenharmony_ci**Returns** 2753e41f4b71Sopenharmony_ci 2754e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 2755e41f4b71Sopenharmony_ci 2756e41f4b71Sopenharmony_ci**See** 2757e41f4b71Sopenharmony_ci 2758e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 2759e41f4b71Sopenharmony_ci 2760e41f4b71Sopenharmony_ci 2761e41f4b71Sopenharmony_ci### greaterThan 2762e41f4b71Sopenharmony_ci 2763e41f4b71Sopenharmony_ci``` 2764e41f4b71Sopenharmony_ciOH_Predicates *(*greaterThan) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 2765e41f4b71Sopenharmony_ci``` 2766e41f4b71Sopenharmony_ci 2767e41f4b71Sopenharmony_ci**Description** 2768e41f4b71Sopenharmony_ci 2769e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field with value greater than the specified value. 2770e41f4b71Sopenharmony_ci 2771e41f4b71Sopenharmony_ciThis method is equivalent to ">" in SQL statements. 2772e41f4b71Sopenharmony_ci 2773e41f4b71Sopenharmony_ci**Since**: 10 2774e41f4b71Sopenharmony_ci 2775e41f4b71Sopenharmony_ci**Parameters** 2776e41f4b71Sopenharmony_ci 2777e41f4b71Sopenharmony_ci| Name | Description | 2778e41f4b71Sopenharmony_ci| -------- | -------- | 2779e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 2780e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 2781e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value to match.| 2782e41f4b71Sopenharmony_ci 2783e41f4b71Sopenharmony_ci**Returns** 2784e41f4b71Sopenharmony_ci 2785e41f4b71Sopenharmony_ciReturns the predicates created. 2786e41f4b71Sopenharmony_ci 2787e41f4b71Sopenharmony_ci**See** 2788e41f4b71Sopenharmony_ci 2789e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 2790e41f4b71Sopenharmony_ci 2791e41f4b71Sopenharmony_ci 2792e41f4b71Sopenharmony_ci### greaterThanOrEqualTo 2793e41f4b71Sopenharmony_ci 2794e41f4b71Sopenharmony_ci``` 2795e41f4b71Sopenharmony_ciOH_Predicates *(*greaterThanOrEqualTo) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 2796e41f4b71Sopenharmony_ci``` 2797e41f4b71Sopenharmony_ci 2798e41f4b71Sopenharmony_ci**Description** 2799e41f4b71Sopenharmony_ci 2800e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field with value greater than or equal to the specified value. 2801e41f4b71Sopenharmony_ci 2802e41f4b71Sopenharmony_ciThis method is equivalent to ">=" in SQL statements. 2803e41f4b71Sopenharmony_ci 2804e41f4b71Sopenharmony_ci**Since**: 10 2805e41f4b71Sopenharmony_ci 2806e41f4b71Sopenharmony_ci**Parameters** 2807e41f4b71Sopenharmony_ci 2808e41f4b71Sopenharmony_ci| Name | Description | 2809e41f4b71Sopenharmony_ci| -------- | -------- | 2810e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 2811e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 2812e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value to match.| 2813e41f4b71Sopenharmony_ci 2814e41f4b71Sopenharmony_ci**Returns** 2815e41f4b71Sopenharmony_ci 2816e41f4b71Sopenharmony_ciReturns the predicates created. 2817e41f4b71Sopenharmony_ci 2818e41f4b71Sopenharmony_ci**See** 2819e41f4b71Sopenharmony_ci 2820e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 2821e41f4b71Sopenharmony_ci 2822e41f4b71Sopenharmony_ci 2823e41f4b71Sopenharmony_ci### groupBy 2824e41f4b71Sopenharmony_ci 2825e41f4b71Sopenharmony_ci``` 2826e41f4b71Sopenharmony_ciOH_Predicates *(*groupBy) (OH_Predicates *predicates, char const *const *fields, int length) 2827e41f4b71Sopenharmony_ci``` 2828e41f4b71Sopenharmony_ci 2829e41f4b71Sopenharmony_ci**Description** 2830e41f4b71Sopenharmony_ci 2831e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to group rows that have the same value into summary rows. 2832e41f4b71Sopenharmony_ci 2833e41f4b71Sopenharmony_ciThis method is equivalent to **GROUP BY** in SQL statements. 2834e41f4b71Sopenharmony_ci 2835e41f4b71Sopenharmony_ci**Since**: 10 2836e41f4b71Sopenharmony_ci 2837e41f4b71Sopenharmony_ci**Parameters** 2838e41f4b71Sopenharmony_ci 2839e41f4b71Sopenharmony_ci| Name | Description | 2840e41f4b71Sopenharmony_ci| -------- | -------- | 2841e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 2842e41f4b71Sopenharmony_ci| fields | Pointer to the names of the columns by which the records are grouped. | 2843e41f4b71Sopenharmony_ci| length | Length of the **fields** value. | 2844e41f4b71Sopenharmony_ci 2845e41f4b71Sopenharmony_ci**Returns** 2846e41f4b71Sopenharmony_ci 2847e41f4b71Sopenharmony_ciReturns the predicates created. 2848e41f4b71Sopenharmony_ci 2849e41f4b71Sopenharmony_ci**See** 2850e41f4b71Sopenharmony_ci 2851e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 2852e41f4b71Sopenharmony_ci 2853e41f4b71Sopenharmony_ci 2854e41f4b71Sopenharmony_ci### id [1/5] 2855e41f4b71Sopenharmony_ci 2856e41f4b71Sopenharmony_ci``` 2857e41f4b71Sopenharmony_ciint64_t OH_Cursor::id 2858e41f4b71Sopenharmony_ci``` 2859e41f4b71Sopenharmony_ci 2860e41f4b71Sopenharmony_ci**Description** 2861e41f4b71Sopenharmony_ci 2862e41f4b71Sopenharmony_ciUnique identifier of the **OH_Cursor** struct. 2863e41f4b71Sopenharmony_ci 2864e41f4b71Sopenharmony_ci 2865e41f4b71Sopenharmony_ci### id [2/5] 2866e41f4b71Sopenharmony_ci 2867e41f4b71Sopenharmony_ci``` 2868e41f4b71Sopenharmony_ciint64_t OH_Predicates::id 2869e41f4b71Sopenharmony_ci``` 2870e41f4b71Sopenharmony_ci 2871e41f4b71Sopenharmony_ci**Description** 2872e41f4b71Sopenharmony_ci 2873e41f4b71Sopenharmony_ciUnique identifier of the **OH_Predicates** struct. 2874e41f4b71Sopenharmony_ci 2875e41f4b71Sopenharmony_ci 2876e41f4b71Sopenharmony_ci### id [3/5] 2877e41f4b71Sopenharmony_ci 2878e41f4b71Sopenharmony_ci``` 2879e41f4b71Sopenharmony_ciint64_t OH_VObject::id 2880e41f4b71Sopenharmony_ci``` 2881e41f4b71Sopenharmony_ci 2882e41f4b71Sopenharmony_ci**Description** 2883e41f4b71Sopenharmony_ci 2884e41f4b71Sopenharmony_ciUnique identifier of the **OH_VObject** struct. 2885e41f4b71Sopenharmony_ci 2886e41f4b71Sopenharmony_ci 2887e41f4b71Sopenharmony_ci### id [4/5] 2888e41f4b71Sopenharmony_ci 2889e41f4b71Sopenharmony_ci``` 2890e41f4b71Sopenharmony_ciint64_t OH_VBucket::id 2891e41f4b71Sopenharmony_ci``` 2892e41f4b71Sopenharmony_ci 2893e41f4b71Sopenharmony_ci**Description** 2894e41f4b71Sopenharmony_ci 2895e41f4b71Sopenharmony_ciUnique identifier of the **OH_VBucket** struct. 2896e41f4b71Sopenharmony_ci 2897e41f4b71Sopenharmony_ci 2898e41f4b71Sopenharmony_ci### id [5/5] 2899e41f4b71Sopenharmony_ci 2900e41f4b71Sopenharmony_ci``` 2901e41f4b71Sopenharmony_ciint64_t OH_Rdb_Store::id 2902e41f4b71Sopenharmony_ci``` 2903e41f4b71Sopenharmony_ci 2904e41f4b71Sopenharmony_ci**Description** 2905e41f4b71Sopenharmony_ci 2906e41f4b71Sopenharmony_ciUnique identifier of the **OH_Rdb_Store** struct. 2907e41f4b71Sopenharmony_ci 2908e41f4b71Sopenharmony_ci 2909e41f4b71Sopenharmony_ci### in 2910e41f4b71Sopenharmony_ci 2911e41f4b71Sopenharmony_ci``` 2912e41f4b71Sopenharmony_ciOH_Predicates *(*in) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 2913e41f4b71Sopenharmony_ci``` 2914e41f4b71Sopenharmony_ci 2915e41f4b71Sopenharmony_ci**Description** 2916e41f4b71Sopenharmony_ci 2917e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field with the value within the specified range. 2918e41f4b71Sopenharmony_ci 2919e41f4b71Sopenharmony_ciThis method is equivalent to **IN** in SQL statements. 2920e41f4b71Sopenharmony_ci 2921e41f4b71Sopenharmony_ci**Since**: 10 2922e41f4b71Sopenharmony_ci 2923e41f4b71Sopenharmony_ci**Parameters** 2924e41f4b71Sopenharmony_ci 2925e41f4b71Sopenharmony_ci| Name | Description | 2926e41f4b71Sopenharmony_ci| -------- | -------- | 2927e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 2928e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 2929e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value range.| 2930e41f4b71Sopenharmony_ci 2931e41f4b71Sopenharmony_ci**Returns** 2932e41f4b71Sopenharmony_ci 2933e41f4b71Sopenharmony_ciReturns the predicates created. 2934e41f4b71Sopenharmony_ci 2935e41f4b71Sopenharmony_ci**See** 2936e41f4b71Sopenharmony_ci 2937e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 2938e41f4b71Sopenharmony_ci 2939e41f4b71Sopenharmony_ci 2940e41f4b71Sopenharmony_ci### inserted 2941e41f4b71Sopenharmony_ci 2942e41f4b71Sopenharmony_ci``` 2943e41f4b71Sopenharmony_ciRdb_KeyInfo Rdb_ChangeInfo::inserted 2944e41f4b71Sopenharmony_ci``` 2945e41f4b71Sopenharmony_ci 2946e41f4b71Sopenharmony_ci**Description** 2947e41f4b71Sopenharmony_ci 2948e41f4b71Sopenharmony_ciLocation where data is inserted. If the primary key of the table is of the string type, the value is the value of the primary key. Otherwise, the value is the row number of the inserted data. 2949e41f4b71Sopenharmony_ci 2950e41f4b71Sopenharmony_ci 2951e41f4b71Sopenharmony_ci### integer 2952e41f4b71Sopenharmony_ci 2953e41f4b71Sopenharmony_ci``` 2954e41f4b71Sopenharmony_ciuint64_t Rdb_KeyInfo::Rdb_KeyData::integer 2955e41f4b71Sopenharmony_ci``` 2956e41f4b71Sopenharmony_ci 2957e41f4b71Sopenharmony_ci**Description** 2958e41f4b71Sopenharmony_ci 2959e41f4b71Sopenharmony_ciData of the uint64_t type. 2960e41f4b71Sopenharmony_ci 2961e41f4b71Sopenharmony_ci 2962e41f4b71Sopenharmony_ci### isAutoSync 2963e41f4b71Sopenharmony_ci 2964e41f4b71Sopenharmony_ci``` 2965e41f4b71Sopenharmony_cibool Rdb_DistributedConfig::isAutoSync 2966e41f4b71Sopenharmony_ci``` 2967e41f4b71Sopenharmony_ci 2968e41f4b71Sopenharmony_ci**Description** 2969e41f4b71Sopenharmony_ci 2970e41f4b71Sopenharmony_ciWhether the table supports automatic sync. 2971e41f4b71Sopenharmony_ci 2972e41f4b71Sopenharmony_ci 2973e41f4b71Sopenharmony_ci### isEncrypt 2974e41f4b71Sopenharmony_ci 2975e41f4b71Sopenharmony_ci``` 2976e41f4b71Sopenharmony_cibool OH_Rdb_Config::isEncrypt 2977e41f4b71Sopenharmony_ci``` 2978e41f4b71Sopenharmony_ci 2979e41f4b71Sopenharmony_ci**Description** 2980e41f4b71Sopenharmony_ci 2981e41f4b71Sopenharmony_ciWhether to encrypt the RDB store. 2982e41f4b71Sopenharmony_ci 2983e41f4b71Sopenharmony_ci 2984e41f4b71Sopenharmony_ci### isNotNull 2985e41f4b71Sopenharmony_ci 2986e41f4b71Sopenharmony_ci``` 2987e41f4b71Sopenharmony_ciOH_Predicates *(*isNotNull) (OH_Predicates *predicates, const char *field) 2988e41f4b71Sopenharmony_ci``` 2989e41f4b71Sopenharmony_ci 2990e41f4b71Sopenharmony_ci**Description** 2991e41f4b71Sopenharmony_ci 2992e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field whose value is not null. 2993e41f4b71Sopenharmony_ci 2994e41f4b71Sopenharmony_ciThis method is equivalent to **IS NOT NULL** in SQL statements. 2995e41f4b71Sopenharmony_ci 2996e41f4b71Sopenharmony_ci**Since**: 10 2997e41f4b71Sopenharmony_ci 2998e41f4b71Sopenharmony_ci**Parameters** 2999e41f4b71Sopenharmony_ci 3000e41f4b71Sopenharmony_ci| Name | Description | 3001e41f4b71Sopenharmony_ci| -------- | -------- | 3002e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3003e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3004e41f4b71Sopenharmony_ci 3005e41f4b71Sopenharmony_ci**Returns** 3006e41f4b71Sopenharmony_ci 3007e41f4b71Sopenharmony_ciReturns the predicates created. 3008e41f4b71Sopenharmony_ci 3009e41f4b71Sopenharmony_ci**See** 3010e41f4b71Sopenharmony_ci 3011e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 3012e41f4b71Sopenharmony_ci 3013e41f4b71Sopenharmony_ci 3014e41f4b71Sopenharmony_ci### isNull [1/2] 3015e41f4b71Sopenharmony_ci 3016e41f4b71Sopenharmony_ci``` 3017e41f4b71Sopenharmony_ciint(*isNull) (OH_Cursor *cursor, int32_t columnIndex, bool *isNull) 3018e41f4b71Sopenharmony_ci``` 3019e41f4b71Sopenharmony_ci 3020e41f4b71Sopenharmony_ci**Description** 3021e41f4b71Sopenharmony_ci 3022e41f4b71Sopenharmony_ciPointer to the function used to check whether the value in the specified column is null. 3023e41f4b71Sopenharmony_ci 3024e41f4b71Sopenharmony_ci**Since**: 10 3025e41f4b71Sopenharmony_ci 3026e41f4b71Sopenharmony_ci**Parameters** 3027e41f4b71Sopenharmony_ci 3028e41f4b71Sopenharmony_ci| Name | Description | 3029e41f4b71Sopenharmony_ci| -------- | -------- | 3030e41f4b71Sopenharmony_ci| cursor | Pointer to the [OH_Cursor](_o_h___cursor.md) instance. | 3031e41f4b71Sopenharmony_ci| columnIndex | Index of the column. The index value starts from **0**. | 3032e41f4b71Sopenharmony_ci| isNull | Pointer to the value returned. The value **true** means the value is null; the value **false** means the opposite. | 3033e41f4b71Sopenharmony_ci 3034e41f4b71Sopenharmony_ci**Returns** 3035e41f4b71Sopenharmony_ci 3036e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3037e41f4b71Sopenharmony_ci 3038e41f4b71Sopenharmony_ci**See** 3039e41f4b71Sopenharmony_ci 3040e41f4b71Sopenharmony_ci[OH_Cursor](_o_h___cursor.md). 3041e41f4b71Sopenharmony_ci 3042e41f4b71Sopenharmony_ci 3043e41f4b71Sopenharmony_ci### isNull [2/2] 3044e41f4b71Sopenharmony_ci 3045e41f4b71Sopenharmony_ci``` 3046e41f4b71Sopenharmony_ciOH_Predicates *(*isNull) (OH_Predicates *predicates, const char *field) 3047e41f4b71Sopenharmony_ci``` 3048e41f4b71Sopenharmony_ci 3049e41f4b71Sopenharmony_ci**Description** 3050e41f4b71Sopenharmony_ci 3051e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field whose value is null. 3052e41f4b71Sopenharmony_ci 3053e41f4b71Sopenharmony_ciThis method is equivalent to **IS NULL** in SQL statements. 3054e41f4b71Sopenharmony_ci 3055e41f4b71Sopenharmony_ci**Since**: 10 3056e41f4b71Sopenharmony_ci 3057e41f4b71Sopenharmony_ci**Parameters** 3058e41f4b71Sopenharmony_ci 3059e41f4b71Sopenharmony_ci| Name | Description | 3060e41f4b71Sopenharmony_ci| -------- | -------- | 3061e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3062e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3063e41f4b71Sopenharmony_ci 3064e41f4b71Sopenharmony_ci**Returns** 3065e41f4b71Sopenharmony_ci 3066e41f4b71Sopenharmony_ciReturns the predicates created. 3067e41f4b71Sopenharmony_ci 3068e41f4b71Sopenharmony_ci**See** 3069e41f4b71Sopenharmony_ci 3070e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 3071e41f4b71Sopenharmony_ci 3072e41f4b71Sopenharmony_ci 3073e41f4b71Sopenharmony_ci### lessThan 3074e41f4b71Sopenharmony_ci 3075e41f4b71Sopenharmony_ci``` 3076e41f4b71Sopenharmony_ciOH_Predicates *(*lessThan) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 3077e41f4b71Sopenharmony_ci``` 3078e41f4b71Sopenharmony_ci 3079e41f4b71Sopenharmony_ci**Description** 3080e41f4b71Sopenharmony_ci 3081e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field with value less than the specified value. 3082e41f4b71Sopenharmony_ci 3083e41f4b71Sopenharmony_ciThis method is equivalent to "<" in SQL statements. 3084e41f4b71Sopenharmony_ci 3085e41f4b71Sopenharmony_ci**Since**: 10 3086e41f4b71Sopenharmony_ci 3087e41f4b71Sopenharmony_ci**Parameters** 3088e41f4b71Sopenharmony_ci 3089e41f4b71Sopenharmony_ci| Name | Description | 3090e41f4b71Sopenharmony_ci| -------- | -------- | 3091e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3092e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3093e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value to match.| 3094e41f4b71Sopenharmony_ci 3095e41f4b71Sopenharmony_ci**Returns** 3096e41f4b71Sopenharmony_ci 3097e41f4b71Sopenharmony_ciReturns the predicates created. 3098e41f4b71Sopenharmony_ci 3099e41f4b71Sopenharmony_ci**See** 3100e41f4b71Sopenharmony_ci 3101e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 3102e41f4b71Sopenharmony_ci 3103e41f4b71Sopenharmony_ci 3104e41f4b71Sopenharmony_ci### lessThanOrEqualTo 3105e41f4b71Sopenharmony_ci 3106e41f4b71Sopenharmony_ci``` 3107e41f4b71Sopenharmony_ciOH_Predicates *(*lessThanOrEqualTo) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 3108e41f4b71Sopenharmony_ci``` 3109e41f4b71Sopenharmony_ci 3110e41f4b71Sopenharmony_ci**Description** 3111e41f4b71Sopenharmony_ci 3112e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field with value less than or equal to the specified value. 3113e41f4b71Sopenharmony_ci 3114e41f4b71Sopenharmony_ciThis method is equivalent to "<=" in SQL statements. 3115e41f4b71Sopenharmony_ci 3116e41f4b71Sopenharmony_ci**Since**: 10 3117e41f4b71Sopenharmony_ci 3118e41f4b71Sopenharmony_ci**Parameters** 3119e41f4b71Sopenharmony_ci 3120e41f4b71Sopenharmony_ci| Name | Description | 3121e41f4b71Sopenharmony_ci| -------- | -------- | 3122e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3123e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3124e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value to match.| 3125e41f4b71Sopenharmony_ci 3126e41f4b71Sopenharmony_ci**Returns** 3127e41f4b71Sopenharmony_ci 3128e41f4b71Sopenharmony_ciReturns the predicates created. 3129e41f4b71Sopenharmony_ci 3130e41f4b71Sopenharmony_ci**See** 3131e41f4b71Sopenharmony_ci 3132e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 3133e41f4b71Sopenharmony_ci 3134e41f4b71Sopenharmony_ci 3135e41f4b71Sopenharmony_ci### like 3136e41f4b71Sopenharmony_ci 3137e41f4b71Sopenharmony_ci``` 3138e41f4b71Sopenharmony_ciOH_Predicates *(*like) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 3139e41f4b71Sopenharmony_ci``` 3140e41f4b71Sopenharmony_ci 3141e41f4b71Sopenharmony_ci**Description** 3142e41f4b71Sopenharmony_ci 3143e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match a string that is similar to the specified value. 3144e41f4b71Sopenharmony_ci 3145e41f4b71Sopenharmony_ciThis method is equivalent to **LIKE** in SQL statements. 3146e41f4b71Sopenharmony_ci 3147e41f4b71Sopenharmony_ci**Since**: 10 3148e41f4b71Sopenharmony_ci 3149e41f4b71Sopenharmony_ci**Parameters** 3150e41f4b71Sopenharmony_ci 3151e41f4b71Sopenharmony_ci| Name | Description | 3152e41f4b71Sopenharmony_ci| -------- | -------- | 3153e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3154e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3155e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value to match.| 3156e41f4b71Sopenharmony_ci 3157e41f4b71Sopenharmony_ci**Returns** 3158e41f4b71Sopenharmony_ci 3159e41f4b71Sopenharmony_ciReturns the predicates created. 3160e41f4b71Sopenharmony_ci 3161e41f4b71Sopenharmony_ci**See** 3162e41f4b71Sopenharmony_ci 3163e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 3164e41f4b71Sopenharmony_ci 3165e41f4b71Sopenharmony_ci 3166e41f4b71Sopenharmony_ci### limit 3167e41f4b71Sopenharmony_ci 3168e41f4b71Sopenharmony_ci``` 3169e41f4b71Sopenharmony_ciOH_Predicates *(*limit) (OH_Predicates *predicates, unsigned int value) 3170e41f4b71Sopenharmony_ci``` 3171e41f4b71Sopenharmony_ci 3172e41f4b71Sopenharmony_ci**Description** 3173e41f4b71Sopenharmony_ci 3174e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to specify the maximum number of records. 3175e41f4b71Sopenharmony_ci 3176e41f4b71Sopenharmony_ciThis method is equivalent to **LIMIT** in SQL statements. 3177e41f4b71Sopenharmony_ci 3178e41f4b71Sopenharmony_ci**Since**: 10 3179e41f4b71Sopenharmony_ci 3180e41f4b71Sopenharmony_ci**Parameters** 3181e41f4b71Sopenharmony_ci 3182e41f4b71Sopenharmony_ci| Name | Description | 3183e41f4b71Sopenharmony_ci| -------- | -------- | 3184e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3185e41f4b71Sopenharmony_ci| value | Maximum number of data records. | 3186e41f4b71Sopenharmony_ci 3187e41f4b71Sopenharmony_ci**Returns** 3188e41f4b71Sopenharmony_ci 3189e41f4b71Sopenharmony_ciReturns the predicates created. 3190e41f4b71Sopenharmony_ci 3191e41f4b71Sopenharmony_ci**See** 3192e41f4b71Sopenharmony_ci 3193e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 3194e41f4b71Sopenharmony_ci 3195e41f4b71Sopenharmony_ci 3196e41f4b71Sopenharmony_ci### moduleName 3197e41f4b71Sopenharmony_ci 3198e41f4b71Sopenharmony_ci``` 3199e41f4b71Sopenharmony_ciconst char* OH_Rdb_Config::moduleName 3200e41f4b71Sopenharmony_ci``` 3201e41f4b71Sopenharmony_ci 3202e41f4b71Sopenharmony_ci**Description** 3203e41f4b71Sopenharmony_ci 3204e41f4b71Sopenharmony_ciModule name. 3205e41f4b71Sopenharmony_ci 3206e41f4b71Sopenharmony_ci 3207e41f4b71Sopenharmony_ci### notBetween 3208e41f4b71Sopenharmony_ci 3209e41f4b71Sopenharmony_ci``` 3210e41f4b71Sopenharmony_ciOH_Predicates *(*notBetween) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 3211e41f4b71Sopenharmony_ci``` 3212e41f4b71Sopenharmony_ci 3213e41f4b71Sopenharmony_ci**Description** 3214e41f4b71Sopenharmony_ci 3215e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field whose value is out of the specified range. 3216e41f4b71Sopenharmony_ci 3217e41f4b71Sopenharmony_ciThis method is equivalent to **NOT BETWEEN** in SQL statements. 3218e41f4b71Sopenharmony_ci 3219e41f4b71Sopenharmony_ci**Since**: 10 3220e41f4b71Sopenharmony_ci 3221e41f4b71Sopenharmony_ci**Parameters** 3222e41f4b71Sopenharmony_ci 3223e41f4b71Sopenharmony_ci| Name | Description | 3224e41f4b71Sopenharmony_ci| -------- | -------- | 3225e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3226e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3227e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value to match.| 3228e41f4b71Sopenharmony_ci 3229e41f4b71Sopenharmony_ci**Returns** 3230e41f4b71Sopenharmony_ci 3231e41f4b71Sopenharmony_ciReturns the predicates created. 3232e41f4b71Sopenharmony_ci 3233e41f4b71Sopenharmony_ci**See** 3234e41f4b71Sopenharmony_ci 3235e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 3236e41f4b71Sopenharmony_ci 3237e41f4b71Sopenharmony_ci 3238e41f4b71Sopenharmony_ci### notEqualTo 3239e41f4b71Sopenharmony_ci 3240e41f4b71Sopenharmony_ci``` 3241e41f4b71Sopenharmony_ciOH_Predicates *(*notEqualTo) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 3242e41f4b71Sopenharmony_ci``` 3243e41f4b71Sopenharmony_ci 3244e41f4b71Sopenharmony_ci**Description** 3245e41f4b71Sopenharmony_ci 3246e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field whose value is not equal to the specified value. 3247e41f4b71Sopenharmony_ci 3248e41f4b71Sopenharmony_ciThis method is equivalent to "!=" in SQL statements. 3249e41f4b71Sopenharmony_ci 3250e41f4b71Sopenharmony_ci**Since**: 10 3251e41f4b71Sopenharmony_ci 3252e41f4b71Sopenharmony_ci**Parameters** 3253e41f4b71Sopenharmony_ci 3254e41f4b71Sopenharmony_ci| Name | Description | 3255e41f4b71Sopenharmony_ci| -------- | -------- | 3256e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3257e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3258e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value to match.| 3259e41f4b71Sopenharmony_ci 3260e41f4b71Sopenharmony_ci**Returns** 3261e41f4b71Sopenharmony_ci 3262e41f4b71Sopenharmony_ciReturns the predicates created. 3263e41f4b71Sopenharmony_ci 3264e41f4b71Sopenharmony_ci**See** 3265e41f4b71Sopenharmony_ci 3266e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 3267e41f4b71Sopenharmony_ci 3268e41f4b71Sopenharmony_ci 3269e41f4b71Sopenharmony_ci### notIn 3270e41f4b71Sopenharmony_ci 3271e41f4b71Sopenharmony_ci``` 3272e41f4b71Sopenharmony_ciOH_Predicates *(*notIn) (OH_Predicates *predicates, const char *field, OH_VObject *valueObject) 3273e41f4b71Sopenharmony_ci``` 3274e41f4b71Sopenharmony_ci 3275e41f4b71Sopenharmony_ci**Description** 3276e41f4b71Sopenharmony_ci 3277e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to match the field with the value out of the specified range. 3278e41f4b71Sopenharmony_ci 3279e41f4b71Sopenharmony_ciThis method is equivalent to **NOT IN** in SQL statements. 3280e41f4b71Sopenharmony_ci 3281e41f4b71Sopenharmony_ci**Since**: 10 3282e41f4b71Sopenharmony_ci 3283e41f4b71Sopenharmony_ci**Parameters** 3284e41f4b71Sopenharmony_ci 3285e41f4b71Sopenharmony_ci| Name | Description | 3286e41f4b71Sopenharmony_ci| -------- | -------- | 3287e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3288e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3289e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance, which specifies the value range to match.| 3290e41f4b71Sopenharmony_ci 3291e41f4b71Sopenharmony_ci**Returns** 3292e41f4b71Sopenharmony_ci 3293e41f4b71Sopenharmony_ciReturns the predicates created. 3294e41f4b71Sopenharmony_ci 3295e41f4b71Sopenharmony_ci**See** 3296e41f4b71Sopenharmony_ci 3297e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_VObject](_o_h___v_object.md). 3298e41f4b71Sopenharmony_ci 3299e41f4b71Sopenharmony_ci 3300e41f4b71Sopenharmony_ci### offset 3301e41f4b71Sopenharmony_ci 3302e41f4b71Sopenharmony_ci``` 3303e41f4b71Sopenharmony_ciOH_Predicates *(*offset) (OH_Predicates *predicates, unsigned int rowOffset) 3304e41f4b71Sopenharmony_ci``` 3305e41f4b71Sopenharmony_ci 3306e41f4b71Sopenharmony_ci**Description** 3307e41f4b71Sopenharmony_ci 3308e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to specify the start position of the returned result. 3309e41f4b71Sopenharmony_ci 3310e41f4b71Sopenharmony_ciThis method is equivalent to **OFFSET** in SQL statements. 3311e41f4b71Sopenharmony_ci 3312e41f4b71Sopenharmony_ci**Since**: 10 3313e41f4b71Sopenharmony_ci 3314e41f4b71Sopenharmony_ci**Parameters** 3315e41f4b71Sopenharmony_ci 3316e41f4b71Sopenharmony_ci| Name | Description | 3317e41f4b71Sopenharmony_ci| -------- | -------- | 3318e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3319e41f4b71Sopenharmony_ci| rowOffset | Start position of the returned result. The value is a positive integer. | 3320e41f4b71Sopenharmony_ci 3321e41f4b71Sopenharmony_ci**Returns** 3322e41f4b71Sopenharmony_ci 3323e41f4b71Sopenharmony_ciReturns the predicates created. 3324e41f4b71Sopenharmony_ci 3325e41f4b71Sopenharmony_ci**See** 3326e41f4b71Sopenharmony_ci 3327e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 3328e41f4b71Sopenharmony_ci 3329e41f4b71Sopenharmony_ci 3330e41f4b71Sopenharmony_ci### orderBy 3331e41f4b71Sopenharmony_ci 3332e41f4b71Sopenharmony_ci``` 3333e41f4b71Sopenharmony_ciOH_Predicates *(*orderBy) (OH_Predicates *predicates, const char *field, OH_OrderType type) 3334e41f4b71Sopenharmony_ci``` 3335e41f4b71Sopenharmony_ci 3336e41f4b71Sopenharmony_ci**Description** 3337e41f4b71Sopenharmony_ci 3338e41f4b71Sopenharmony_ciPointer to the function used to set a predicates object to sort the values in a column in ascending or descending order. 3339e41f4b71Sopenharmony_ci 3340e41f4b71Sopenharmony_ciThis method is equivalent to **ORDER BY** in SQL statements. 3341e41f4b71Sopenharmony_ci 3342e41f4b71Sopenharmony_ci**Since**: 10 3343e41f4b71Sopenharmony_ci 3344e41f4b71Sopenharmony_ci**Parameters** 3345e41f4b71Sopenharmony_ci 3346e41f4b71Sopenharmony_ci| Name | Description | 3347e41f4b71Sopenharmony_ci| -------- | -------- | 3348e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3349e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3350e41f4b71Sopenharmony_ci| type | Sorting type [OH_OrderType](#oh_ordertype). | 3351e41f4b71Sopenharmony_ci 3352e41f4b71Sopenharmony_ci**Returns** 3353e41f4b71Sopenharmony_ci 3354e41f4b71Sopenharmony_ciReturns the predicates created. 3355e41f4b71Sopenharmony_ci 3356e41f4b71Sopenharmony_ci**See** 3357e41f4b71Sopenharmony_ci 3358e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md), [OH_OrderType](#oh_ordertype). 3359e41f4b71Sopenharmony_ci 3360e41f4b71Sopenharmony_ci 3361e41f4b71Sopenharmony_ci### orOperate 3362e41f4b71Sopenharmony_ci 3363e41f4b71Sopenharmony_ci``` 3364e41f4b71Sopenharmony_ciOH_Predicates *(*orOperate) (OH_Predicates *predicates) 3365e41f4b71Sopenharmony_ci``` 3366e41f4b71Sopenharmony_ci 3367e41f4b71Sopenharmony_ci**Description** 3368e41f4b71Sopenharmony_ci 3369e41f4b71Sopenharmony_ciPointer to the function used to add the OR operator to the predicates. 3370e41f4b71Sopenharmony_ci 3371e41f4b71Sopenharmony_ciThis method is equivalent to **OR** in SQL statements. 3372e41f4b71Sopenharmony_ci 3373e41f4b71Sopenharmony_ci**Since**: 10 3374e41f4b71Sopenharmony_ci 3375e41f4b71Sopenharmony_ci**Parameters** 3376e41f4b71Sopenharmony_ci 3377e41f4b71Sopenharmony_ci| Name | Description | 3378e41f4b71Sopenharmony_ci| -------- | -------- | 3379e41f4b71Sopenharmony_ci| predicates | Pointer to the [OH_Predicates](_o_h___predicates.md) instance. | 3380e41f4b71Sopenharmony_ci 3381e41f4b71Sopenharmony_ci**Returns** 3382e41f4b71Sopenharmony_ci 3383e41f4b71Sopenharmony_ciReturns the predicates with the OR operator. 3384e41f4b71Sopenharmony_ci 3385e41f4b71Sopenharmony_ci**See** 3386e41f4b71Sopenharmony_ci 3387e41f4b71Sopenharmony_ci[OH_Predicates](_o_h___predicates.md). 3388e41f4b71Sopenharmony_ci 3389e41f4b71Sopenharmony_ci 3390e41f4b71Sopenharmony_ci### putBlob 3391e41f4b71Sopenharmony_ci 3392e41f4b71Sopenharmony_ci``` 3393e41f4b71Sopenharmony_ciint(*putBlob) (OH_VBucket *bucket, const char *field, const uint8_t *value, uint32_t size) 3394e41f4b71Sopenharmony_ci``` 3395e41f4b71Sopenharmony_ci 3396e41f4b71Sopenharmony_ci**Description** 3397e41f4b71Sopenharmony_ci 3398e41f4b71Sopenharmony_ciPointer to the function used to put a const uint8_t value into the [OH_VBucket](_o_h___v_bucket.md) object in the given column. 3399e41f4b71Sopenharmony_ci 3400e41f4b71Sopenharmony_ci**Since**: 10 3401e41f4b71Sopenharmony_ci 3402e41f4b71Sopenharmony_ci**Parameters** 3403e41f4b71Sopenharmony_ci 3404e41f4b71Sopenharmony_ci| Name | Description | 3405e41f4b71Sopenharmony_ci| -------- | -------- | 3406e41f4b71Sopenharmony_ci| bucket | Pointer to the [OH_VBucket](_o_h___v_bucket.md) instance. | 3407e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3408e41f4b71Sopenharmony_ci| value | Pointer to the value to put. | 3409e41f4b71Sopenharmony_ci| size | Length of the value. | 3410e41f4b71Sopenharmony_ci 3411e41f4b71Sopenharmony_ci**Returns** 3412e41f4b71Sopenharmony_ci 3413e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3414e41f4b71Sopenharmony_ci 3415e41f4b71Sopenharmony_ci**See** 3416e41f4b71Sopenharmony_ci 3417e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 3418e41f4b71Sopenharmony_ci 3419e41f4b71Sopenharmony_ci 3420e41f4b71Sopenharmony_ci### putDouble 3421e41f4b71Sopenharmony_ci 3422e41f4b71Sopenharmony_ci``` 3423e41f4b71Sopenharmony_ciint(*putDouble) (OH_VObject *valueObject, double *value, uint32_t count) 3424e41f4b71Sopenharmony_ci``` 3425e41f4b71Sopenharmony_ci 3426e41f4b71Sopenharmony_ci**Description** 3427e41f4b71Sopenharmony_ci 3428e41f4b71Sopenharmony_ciPointer to the function used to convert a single parameter or an array of the double type into a value of the [OH_VObject](_o_h___v_object.md) type. 3429e41f4b71Sopenharmony_ci 3430e41f4b71Sopenharmony_ci**Since**: 10 3431e41f4b71Sopenharmony_ci 3432e41f4b71Sopenharmony_ci**Parameters** 3433e41f4b71Sopenharmony_ci 3434e41f4b71Sopenharmony_ci| Name | Description | 3435e41f4b71Sopenharmony_ci| -------- | -------- | 3436e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance. | 3437e41f4b71Sopenharmony_ci| value | Pointer to the data to covert. | 3438e41f4b71Sopenharmony_ci| count | If **value** points to a single parameter, **count** is **1**. If **value** points to an array, **count** specifies the length of the array. | 3439e41f4b71Sopenharmony_ci 3440e41f4b71Sopenharmony_ci**Returns** 3441e41f4b71Sopenharmony_ci 3442e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3443e41f4b71Sopenharmony_ci 3444e41f4b71Sopenharmony_ci**See** 3445e41f4b71Sopenharmony_ci 3446e41f4b71Sopenharmony_ci[OH_VObject](_o_h___v_object.md). 3447e41f4b71Sopenharmony_ci 3448e41f4b71Sopenharmony_ci 3449e41f4b71Sopenharmony_ci### putInt64 [1/2] 3450e41f4b71Sopenharmony_ci 3451e41f4b71Sopenharmony_ci``` 3452e41f4b71Sopenharmony_ciint(*putInt64) (OH_VBucket *bucket, const char *field, int64_t value) 3453e41f4b71Sopenharmony_ci``` 3454e41f4b71Sopenharmony_ci 3455e41f4b71Sopenharmony_ci**Description** 3456e41f4b71Sopenharmony_ci 3457e41f4b71Sopenharmony_ciPointer to the function used to put an int64_t value into the [OH_VBucket](_o_h___v_bucket.md) object in the given column. 3458e41f4b71Sopenharmony_ci 3459e41f4b71Sopenharmony_ci**Since**: 10 3460e41f4b71Sopenharmony_ci 3461e41f4b71Sopenharmony_ci**Parameters** 3462e41f4b71Sopenharmony_ci 3463e41f4b71Sopenharmony_ci| Name | Description | 3464e41f4b71Sopenharmony_ci| -------- | -------- | 3465e41f4b71Sopenharmony_ci| bucket | Pointer to the [OH_VBucket](_o_h___v_bucket.md) instance. | 3466e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3467e41f4b71Sopenharmony_ci| value | Value to put.| 3468e41f4b71Sopenharmony_ci 3469e41f4b71Sopenharmony_ci**Returns** 3470e41f4b71Sopenharmony_ci 3471e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3472e41f4b71Sopenharmony_ci 3473e41f4b71Sopenharmony_ci**See** 3474e41f4b71Sopenharmony_ci 3475e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 3476e41f4b71Sopenharmony_ci 3477e41f4b71Sopenharmony_ci 3478e41f4b71Sopenharmony_ci### putInt64 [2/2] 3479e41f4b71Sopenharmony_ci 3480e41f4b71Sopenharmony_ci``` 3481e41f4b71Sopenharmony_ciint(*putInt64) (OH_VObject *valueObject, int64_t *value, uint32_t count) 3482e41f4b71Sopenharmony_ci``` 3483e41f4b71Sopenharmony_ci 3484e41f4b71Sopenharmony_ci**Description** 3485e41f4b71Sopenharmony_ci 3486e41f4b71Sopenharmony_ciPointer to the function used to convert a single parameter or an array of the int64 type into a value of the [OH_VObject](_o_h___v_object.md) type. 3487e41f4b71Sopenharmony_ci 3488e41f4b71Sopenharmony_ci**Since**: 10 3489e41f4b71Sopenharmony_ci 3490e41f4b71Sopenharmony_ci**Parameters** 3491e41f4b71Sopenharmony_ci 3492e41f4b71Sopenharmony_ci| Name | Description | 3493e41f4b71Sopenharmony_ci| -------- | -------- | 3494e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance. | 3495e41f4b71Sopenharmony_ci| value | Pointer to the data to covert. | 3496e41f4b71Sopenharmony_ci| count | If **value** points to a single parameter, **count** is **1**. If **value** points to an array, **count** specifies the length of the array. | 3497e41f4b71Sopenharmony_ci 3498e41f4b71Sopenharmony_ci**Returns** 3499e41f4b71Sopenharmony_ci 3500e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3501e41f4b71Sopenharmony_ci 3502e41f4b71Sopenharmony_ci**See** 3503e41f4b71Sopenharmony_ci 3504e41f4b71Sopenharmony_ci[OH_VObject](_o_h___v_object.md). 3505e41f4b71Sopenharmony_ci 3506e41f4b71Sopenharmony_ci 3507e41f4b71Sopenharmony_ci### putNull 3508e41f4b71Sopenharmony_ci 3509e41f4b71Sopenharmony_ci``` 3510e41f4b71Sopenharmony_ciint(*putNull) (OH_VBucket *bucket, const char *field) 3511e41f4b71Sopenharmony_ci``` 3512e41f4b71Sopenharmony_ci 3513e41f4b71Sopenharmony_ci**Description** 3514e41f4b71Sopenharmony_ci 3515e41f4b71Sopenharmony_ciPointer to the function used to put a null value into the [OH_VBucket](_o_h___v_bucket.md) object in the given column. 3516e41f4b71Sopenharmony_ci 3517e41f4b71Sopenharmony_ci**Since**: 10 3518e41f4b71Sopenharmony_ci 3519e41f4b71Sopenharmony_ci**Parameters** 3520e41f4b71Sopenharmony_ci 3521e41f4b71Sopenharmony_ci| Name | Description | 3522e41f4b71Sopenharmony_ci| -------- | -------- | 3523e41f4b71Sopenharmony_ci| bucket | Pointer to the [OH_VBucket](_o_h___v_bucket.md) instance. | 3524e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3525e41f4b71Sopenharmony_ci 3526e41f4b71Sopenharmony_ci**Returns** 3527e41f4b71Sopenharmony_ci 3528e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3529e41f4b71Sopenharmony_ci 3530e41f4b71Sopenharmony_ci**See** 3531e41f4b71Sopenharmony_ci 3532e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 3533e41f4b71Sopenharmony_ci 3534e41f4b71Sopenharmony_ci 3535e41f4b71Sopenharmony_ci### putReal 3536e41f4b71Sopenharmony_ci 3537e41f4b71Sopenharmony_ci``` 3538e41f4b71Sopenharmony_ciint(*putReal) (OH_VBucket *bucket, const char *field, double value) 3539e41f4b71Sopenharmony_ci``` 3540e41f4b71Sopenharmony_ci 3541e41f4b71Sopenharmony_ci**Description** 3542e41f4b71Sopenharmony_ci 3543e41f4b71Sopenharmony_ciPointer to the function used to put a double value into the [OH_VBucket](_o_h___v_bucket.md) object in the given column. 3544e41f4b71Sopenharmony_ci 3545e41f4b71Sopenharmony_ci**Since**: 10 3546e41f4b71Sopenharmony_ci 3547e41f4b71Sopenharmony_ci**Parameters** 3548e41f4b71Sopenharmony_ci 3549e41f4b71Sopenharmony_ci| Name | Description | 3550e41f4b71Sopenharmony_ci| -------- | -------- | 3551e41f4b71Sopenharmony_ci| bucket | Pointer to the [OH_VBucket](_o_h___v_bucket.md) instance. | 3552e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3553e41f4b71Sopenharmony_ci| value | Value to put.| 3554e41f4b71Sopenharmony_ci 3555e41f4b71Sopenharmony_ci**Returns** 3556e41f4b71Sopenharmony_ci 3557e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3558e41f4b71Sopenharmony_ci 3559e41f4b71Sopenharmony_ci**See** 3560e41f4b71Sopenharmony_ci 3561e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 3562e41f4b71Sopenharmony_ci 3563e41f4b71Sopenharmony_ci 3564e41f4b71Sopenharmony_ci### putText [1/2] 3565e41f4b71Sopenharmony_ci 3566e41f4b71Sopenharmony_ci``` 3567e41f4b71Sopenharmony_ciint(*putText) (OH_VBucket *bucket, const char *field, const char *value) 3568e41f4b71Sopenharmony_ci``` 3569e41f4b71Sopenharmony_ci 3570e41f4b71Sopenharmony_ci**Description** 3571e41f4b71Sopenharmony_ci 3572e41f4b71Sopenharmony_ciPointer to the function used to put a char value into the [OH_VBucket](_o_h___v_bucket.md) object in the given column. 3573e41f4b71Sopenharmony_ci 3574e41f4b71Sopenharmony_ci**Since**: 10 3575e41f4b71Sopenharmony_ci 3576e41f4b71Sopenharmony_ci**Parameters** 3577e41f4b71Sopenharmony_ci 3578e41f4b71Sopenharmony_ci| Name | Description | 3579e41f4b71Sopenharmony_ci| -------- | -------- | 3580e41f4b71Sopenharmony_ci| bucket | Pointer to the [OH_VBucket](_o_h___v_bucket.md) instance. | 3581e41f4b71Sopenharmony_ci| field | Pointer to the column name in the database table. | 3582e41f4b71Sopenharmony_ci| value | Pointer to the value to put. | 3583e41f4b71Sopenharmony_ci 3584e41f4b71Sopenharmony_ci**Returns** 3585e41f4b71Sopenharmony_ci 3586e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3587e41f4b71Sopenharmony_ci 3588e41f4b71Sopenharmony_ci**See** 3589e41f4b71Sopenharmony_ci 3590e41f4b71Sopenharmony_ci[OH_VBucket](_o_h___v_bucket.md). 3591e41f4b71Sopenharmony_ci 3592e41f4b71Sopenharmony_ci 3593e41f4b71Sopenharmony_ci### putText [2/2] 3594e41f4b71Sopenharmony_ci 3595e41f4b71Sopenharmony_ci``` 3596e41f4b71Sopenharmony_ciint(*putText) (OH_VObject *valueObject, const char *value) 3597e41f4b71Sopenharmony_ci``` 3598e41f4b71Sopenharmony_ci 3599e41f4b71Sopenharmony_ci**Description** 3600e41f4b71Sopenharmony_ci 3601e41f4b71Sopenharmony_ciPointer to the function used to convert a character array of the char type to a value of the [OH_VObject](_o_h___v_object.md) type. 3602e41f4b71Sopenharmony_ci 3603e41f4b71Sopenharmony_ci**Since**: 10 3604e41f4b71Sopenharmony_ci 3605e41f4b71Sopenharmony_ci**Parameters** 3606e41f4b71Sopenharmony_ci 3607e41f4b71Sopenharmony_ci| Name | Description | 3608e41f4b71Sopenharmony_ci| -------- | -------- | 3609e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance. | 3610e41f4b71Sopenharmony_ci| value | Pointer to the character array to convert. | 3611e41f4b71Sopenharmony_ci 3612e41f4b71Sopenharmony_ci**Returns** 3613e41f4b71Sopenharmony_ci 3614e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3615e41f4b71Sopenharmony_ci 3616e41f4b71Sopenharmony_ci**See** 3617e41f4b71Sopenharmony_ci 3618e41f4b71Sopenharmony_ci[OH_VObject](_o_h___v_object.md). 3619e41f4b71Sopenharmony_ci 3620e41f4b71Sopenharmony_ci 3621e41f4b71Sopenharmony_ci### putTexts 3622e41f4b71Sopenharmony_ci 3623e41f4b71Sopenharmony_ci``` 3624e41f4b71Sopenharmony_ciint(*putTexts) (OH_VObject *valueObject, const char **value, uint32_t count) 3625e41f4b71Sopenharmony_ci``` 3626e41f4b71Sopenharmony_ci 3627e41f4b71Sopenharmony_ci**Description** 3628e41f4b71Sopenharmony_ci 3629e41f4b71Sopenharmony_ciPointer to the function used to convert a string array of the char type to a value of the [OH_VObject](_o_h___v_object.md) type. 3630e41f4b71Sopenharmony_ci 3631e41f4b71Sopenharmony_ci**Since**: 10 3632e41f4b71Sopenharmony_ci 3633e41f4b71Sopenharmony_ci**Parameters** 3634e41f4b71Sopenharmony_ci 3635e41f4b71Sopenharmony_ci| Name | Description | 3636e41f4b71Sopenharmony_ci| -------- | -------- | 3637e41f4b71Sopenharmony_ci| valueObject | Pointer to the [OH_VObject](_o_h___v_object.md) instance. | 3638e41f4b71Sopenharmony_ci| value | Pointer to the string array to convert. | 3639e41f4b71Sopenharmony_ci| count | Length of the string array to convert. | 3640e41f4b71Sopenharmony_ci 3641e41f4b71Sopenharmony_ci**Returns** 3642e41f4b71Sopenharmony_ci 3643e41f4b71Sopenharmony_ciReturns **RDB_OK** if the operation is successful; returns an error code otherwise. 3644e41f4b71Sopenharmony_ci 3645e41f4b71Sopenharmony_ci**See** 3646e41f4b71Sopenharmony_ci 3647e41f4b71Sopenharmony_ci[OH_VObject](_o_h___v_object.md). 3648e41f4b71Sopenharmony_ci 3649e41f4b71Sopenharmony_ci 3650e41f4b71Sopenharmony_ci### real 3651e41f4b71Sopenharmony_ci 3652e41f4b71Sopenharmony_ci``` 3653e41f4b71Sopenharmony_cidouble Rdb_KeyInfo::Rdb_KeyData::real 3654e41f4b71Sopenharmony_ci``` 3655e41f4b71Sopenharmony_ci 3656e41f4b71Sopenharmony_ci**Description** 3657e41f4b71Sopenharmony_ci 3658e41f4b71Sopenharmony_ciData of the double type. 3659e41f4b71Sopenharmony_ci 3660e41f4b71Sopenharmony_ci 3661e41f4b71Sopenharmony_ci### remained 3662e41f4b71Sopenharmony_ci 3663e41f4b71Sopenharmony_ci``` 3664e41f4b71Sopenharmony_ciint Rdb_Statistic::remained 3665e41f4b71Sopenharmony_ci``` 3666e41f4b71Sopenharmony_ci 3667e41f4b71Sopenharmony_ci**Description** 3668e41f4b71Sopenharmony_ci 3669e41f4b71Sopenharmony_ciNumber of rows that are not executed for device-cloud sync in the database table. 3670e41f4b71Sopenharmony_ci 3671e41f4b71Sopenharmony_ci 3672e41f4b71Sopenharmony_ci### schedule 3673e41f4b71Sopenharmony_ci 3674e41f4b71Sopenharmony_ci``` 3675e41f4b71Sopenharmony_ciint Rdb_ProgressDetails::schedule 3676e41f4b71Sopenharmony_ci``` 3677e41f4b71Sopenharmony_ci 3678e41f4b71Sopenharmony_ci**Description** 3679e41f4b71Sopenharmony_ci 3680e41f4b71Sopenharmony_ciDevice-cloud sync process. 3681e41f4b71Sopenharmony_ci 3682e41f4b71Sopenharmony_ci 3683e41f4b71Sopenharmony_ci### securityLevel 3684e41f4b71Sopenharmony_ci 3685e41f4b71Sopenharmony_ci``` 3686e41f4b71Sopenharmony_ciint OH_Rdb_Config::securityLevel 3687e41f4b71Sopenharmony_ci``` 3688e41f4b71Sopenharmony_ci 3689e41f4b71Sopenharmony_ci**Description** 3690e41f4b71Sopenharmony_ci 3691e41f4b71Sopenharmony_ciRDB store security level. For details, see [OH_Rdb_SecurityLevel](#oh_rdb_securitylevel). 3692e41f4b71Sopenharmony_ci 3693e41f4b71Sopenharmony_ci 3694e41f4b71Sopenharmony_ci### selfSize 3695e41f4b71Sopenharmony_ci 3696e41f4b71Sopenharmony_ci``` 3697e41f4b71Sopenharmony_ciint OH_Rdb_Config::selfSize 3698e41f4b71Sopenharmony_ci``` 3699e41f4b71Sopenharmony_ci 3700e41f4b71Sopenharmony_ci**Description** 3701e41f4b71Sopenharmony_ci 3702e41f4b71Sopenharmony_ciSize of the struct. 3703e41f4b71Sopenharmony_ci 3704e41f4b71Sopenharmony_ci 3705e41f4b71Sopenharmony_ci### storeName 3706e41f4b71Sopenharmony_ci 3707e41f4b71Sopenharmony_ci``` 3708e41f4b71Sopenharmony_ciconst char* OH_Rdb_Config::storeName 3709e41f4b71Sopenharmony_ci``` 3710e41f4b71Sopenharmony_ci 3711e41f4b71Sopenharmony_ci**Description** 3712e41f4b71Sopenharmony_ci 3713e41f4b71Sopenharmony_ciName of the RDB store. 3714e41f4b71Sopenharmony_ci 3715e41f4b71Sopenharmony_ci 3716e41f4b71Sopenharmony_ci### successful 3717e41f4b71Sopenharmony_ci 3718e41f4b71Sopenharmony_ci``` 3719e41f4b71Sopenharmony_ciint Rdb_Statistic::successful 3720e41f4b71Sopenharmony_ci``` 3721e41f4b71Sopenharmony_ci 3722e41f4b71Sopenharmony_ci**Description** 3723e41f4b71Sopenharmony_ci 3724e41f4b71Sopenharmony_ciNumber of rows that are successfully synchronized between the device and cloud in the database table. 3725e41f4b71Sopenharmony_ci 3726e41f4b71Sopenharmony_ci 3727e41f4b71Sopenharmony_ci### table 3728e41f4b71Sopenharmony_ci 3729e41f4b71Sopenharmony_ci``` 3730e41f4b71Sopenharmony_ciconst char* Rdb_TableDetails::table 3731e41f4b71Sopenharmony_ci``` 3732e41f4b71Sopenharmony_ci 3733e41f4b71Sopenharmony_ci**Description** 3734e41f4b71Sopenharmony_ci 3735e41f4b71Sopenharmony_ciDatabase table name. 3736e41f4b71Sopenharmony_ci 3737e41f4b71Sopenharmony_ci 3738e41f4b71Sopenharmony_ci### tableLength 3739e41f4b71Sopenharmony_ci 3740e41f4b71Sopenharmony_ci``` 3741e41f4b71Sopenharmony_ciint32_t Rdb_ProgressDetails::tableLength 3742e41f4b71Sopenharmony_ci``` 3743e41f4b71Sopenharmony_ci 3744e41f4b71Sopenharmony_ci**Description** 3745e41f4b71Sopenharmony_ci 3746e41f4b71Sopenharmony_ciNumber of the tables synchronized between the device and cloud. 3747e41f4b71Sopenharmony_ci 3748e41f4b71Sopenharmony_ci 3749e41f4b71Sopenharmony_ci### tableName 3750e41f4b71Sopenharmony_ci 3751e41f4b71Sopenharmony_ci``` 3752e41f4b71Sopenharmony_ciconst char* Rdb_ChangeInfo::tableName 3753e41f4b71Sopenharmony_ci``` 3754e41f4b71Sopenharmony_ci 3755e41f4b71Sopenharmony_ci**Description** 3756e41f4b71Sopenharmony_ci 3757e41f4b71Sopenharmony_ciName of the table with data changes. 3758e41f4b71Sopenharmony_ci 3759e41f4b71Sopenharmony_ci 3760e41f4b71Sopenharmony_ci### text 3761e41f4b71Sopenharmony_ci 3762e41f4b71Sopenharmony_ci``` 3763e41f4b71Sopenharmony_ciconst char* Rdb_KeyInfo::Rdb_KeyData::text 3764e41f4b71Sopenharmony_ci``` 3765e41f4b71Sopenharmony_ci 3766e41f4b71Sopenharmony_ci**Description** 3767e41f4b71Sopenharmony_ci 3768e41f4b71Sopenharmony_ciData of the char \* type. 3769e41f4b71Sopenharmony_ci 3770e41f4b71Sopenharmony_ci 3771e41f4b71Sopenharmony_ci### total 3772e41f4b71Sopenharmony_ci 3773e41f4b71Sopenharmony_ci``` 3774e41f4b71Sopenharmony_ciint Rdb_Statistic::total 3775e41f4b71Sopenharmony_ci``` 3776e41f4b71Sopenharmony_ci 3777e41f4b71Sopenharmony_ci**Description** 3778e41f4b71Sopenharmony_ci 3779e41f4b71Sopenharmony_ciTotal number of rows to be synchronized between the device and cloud in the database table. 3780e41f4b71Sopenharmony_ci 3781e41f4b71Sopenharmony_ci 3782e41f4b71Sopenharmony_ci### type 3783e41f4b71Sopenharmony_ci 3784e41f4b71Sopenharmony_ci``` 3785e41f4b71Sopenharmony_ciint Rdb_KeyInfo::type 3786e41f4b71Sopenharmony_ci``` 3787e41f4b71Sopenharmony_ci 3788e41f4b71Sopenharmony_ci**Description** 3789e41f4b71Sopenharmony_ci 3790e41f4b71Sopenharmony_ciType ([OH_ColumnType](#oh_columntype)) of the primary key. 3791e41f4b71Sopenharmony_ci 3792e41f4b71Sopenharmony_ci 3793e41f4b71Sopenharmony_ci### updated 3794e41f4b71Sopenharmony_ci 3795e41f4b71Sopenharmony_ci``` 3796e41f4b71Sopenharmony_ciRdb_KeyInfo Rdb_ChangeInfo::updated 3797e41f4b71Sopenharmony_ci``` 3798e41f4b71Sopenharmony_ci 3799e41f4b71Sopenharmony_ci**Description** 3800e41f4b71Sopenharmony_ci 3801e41f4b71Sopenharmony_ciLocation where data is updated. If the primary key of the table is of the string type, the value is the value of the primary key. Otherwise, the value is the row number of the updated data. 3802e41f4b71Sopenharmony_ci 3803e41f4b71Sopenharmony_ci 3804e41f4b71Sopenharmony_ci### upload 3805e41f4b71Sopenharmony_ci 3806e41f4b71Sopenharmony_ci``` 3807e41f4b71Sopenharmony_ciRdb_Statistic Rdb_TableDetails::upload 3808e41f4b71Sopenharmony_ci``` 3809e41f4b71Sopenharmony_ci 3810e41f4b71Sopenharmony_ci**Description** 3811e41f4b71Sopenharmony_ci 3812e41f4b71Sopenharmony_ciStatistics of the device-cloud upload tasks. 3813e41f4b71Sopenharmony_ci 3814e41f4b71Sopenharmony_ci 3815e41f4b71Sopenharmony_ci### version [1/3] 3816e41f4b71Sopenharmony_ci 3817e41f4b71Sopenharmony_ci``` 3818e41f4b71Sopenharmony_ciint Rdb_DistributedConfig::version 3819e41f4b71Sopenharmony_ci``` 3820e41f4b71Sopenharmony_ci 3821e41f4b71Sopenharmony_ci**Description** 3822e41f4b71Sopenharmony_ci 3823e41f4b71Sopenharmony_ciVersion of the **Rdb_DistributedConfig** struct. 3824e41f4b71Sopenharmony_ci 3825e41f4b71Sopenharmony_ci 3826e41f4b71Sopenharmony_ci### version [2/3] 3827e41f4b71Sopenharmony_ci 3828e41f4b71Sopenharmony_ci``` 3829e41f4b71Sopenharmony_ciint Rdb_ChangeInfo::version 3830e41f4b71Sopenharmony_ci``` 3831e41f4b71Sopenharmony_ci 3832e41f4b71Sopenharmony_ci**Description** 3833e41f4b71Sopenharmony_ci 3834e41f4b71Sopenharmony_ciVersion of the **Rdb_DistributedConfig** struct. 3835e41f4b71Sopenharmony_ci 3836e41f4b71Sopenharmony_ci 3837e41f4b71Sopenharmony_ci### version [3/3] 3838e41f4b71Sopenharmony_ci 3839e41f4b71Sopenharmony_ci``` 3840e41f4b71Sopenharmony_ciint Rdb_ProgressDetails::version 3841e41f4b71Sopenharmony_ci``` 3842e41f4b71Sopenharmony_ci 3843e41f4b71Sopenharmony_ci**Description** 3844e41f4b71Sopenharmony_ci 3845e41f4b71Sopenharmony_ciVersion of the **OH_TableDetails** struct. 3846