/ohos5.0/docs/en/application-dev/database/ |
H A D | data-persistence-by-rdb-store.md | 1 # Persisting RDB Store Data 59 …ance, which includes operations of creating an RDB store and tables, and upgrading or downgrading … 80 … // Check the RDB store version. If the version is incorrect, upgrade or downgrade the RDB store. 91 // When the RDB store is created, the default version is 0. 98 …// If the RDB store version is not 0 and does not match the current version, upgrade or downgrade … 143 // When the RDB store is created, the default version is 0. 150 …// If the RDB store version is not 0 and does not match the current version, upgrade or downgrade … 151 // For example, upgrade the RDB store from version 1 to version 2. 177 2. Use **insert()** to insert data to the RDB store. <br>Example: 322 Example: Perform manual backup of an RDB store. [all …]
|
H A D | data-backup-and-restore.md | 13 Both KV stores and RDB stores support database backup and restore. You can also delete KV store bac… 163 ## Backing Up an RDB Store 165 A database backup can be used to quickly restore a corrupted RDB store. 171 …apis-arkdata/js-apis-data-relationalStore.md#backup) to manually back up an RDB store. <br>Example: 223 // Use getRdbStore() to create an RDB store instance. 235 ## Rebuilding an RDB Store 237 …rted during the creation or use of an RDB store, the database is corrupted. If this occurs, you ca… 239 …RDB store, set **allowRebuild** in [StoreConfig](../reference/apis-arkdata/js-apis-data-relational… 270 ## Restoring RDB Store Data 272 If an RDB store is corrupted, you can restore it by using the database backup. [all …]
|
H A D | data-sync-of-rdb-store.md | 1 # Cross-Device Sync of RDB Stores 6 You can sync the application data in a local RDB store on a device to other devices that form a Sup… 13 … the database is set as a distributed table, when data is queried from the RDB store of a remote d… 27 After writing data to an RDB store, the service sends a sync request to the **DatamgrService**. 38 …n data changes of other devices in the network. When the data in the local RDB store changes after… 43 - A maximum of 16 RDB stores can be opened simultaneously for an application. 45 - Each RDB store supports a maximum of eight callbacks for subscription of data change notification… 50 …RDB stores are executed asynchronously, using a callback or promise to return the result. The foll… 59 … , callback: AsyncCallback<ResultSet>): void | Queries data from the RDB store of a remote d… 79 3. Create an RDB store and set a table for distributed sync. [all …]
|
H A D | native-relational-store-guidelines.md | 31 For details about the interfaces, see [RDB](../reference/apis-arkdata/_r_d_b.md). 35 …Rdb_Config *config, int *errCode) | Obtains an **OH_Rdb_Store** instance for RDB store operations.| 38 …tore *store, OH_VBucket *valuesBucket, OH_Predicates *predicates) | Updates data in an RDB store. | 39 | OH_Rdb_Delete(OH_Rdb_Store *store, OH_Predicates *predicates) | Deletes data from an RDB store. | 40 …edicates *predicates, const char *const *columnNames, int length) | Queries data in an RDB store. | 41 | OH_Rdb_DeleteStore(const OH_Rdb_Config *config) | Deletes an RDB store.| 42 | OH_VBucket_PutAsset(OH_VBucket *bucket, const char *field, Rdb_Asset *value) | Puts an RDB asset … 43 …ucket *bucket, const char *field, Rdb_Asset *value, uint32_t count) | Puts RDB assets into an **OH… 418 …. Register an observer for auto sync progress of an RDB store. When auto sync is performed on the … 442 14. Delete an RDB store. [all …]
|
H A D | data-mgmt-overview.md | 9 …rsisting user preference data, key-value (KV) store data, and relational database (RDB) store data. 31 … backup of data in RDB stores, and notification subscription. When an application needs to use the… 35 …RDB and KV stores. You can also encapsulate your own databases for C/C++ applications.<br>In addit…
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/ |
H A D | js-apis-data-dataSharePredicates-sys.md | 64 目前仅RDB支持该谓词。 94 目前仅RDB支持该谓词。 151 目前仅RDB支持该谓词。 183 目前仅RDB支持该谓词。 215 目前仅RDB支持该谓词。 373 目前仅RDB支持该谓词。 405 目前仅RDB支持该谓词。 438 目前仅RDB支持该谓词。 599 目前仅RDB支持该谓词。 624 目前仅RDB支持该谓词。 [all …]
|
H A D | js-apis-data-dataSharePredicates.md | 30 目前仅RDB及KVDB(schema)支持该谓词。 61 目前仅RDB及KVDB(schema)支持该谓词。 86 目前仅RDB及KVDB(schema)支持该谓词。 115 目前仅RDB及KVDB(schema)支持该谓词。 144 目前仅RDB及KVDB(schema)支持该谓词。 174 目前仅RDB及KVDB(schema)支持该谓词。
|
H A D | oh__predicates_8h.md | 6 表示关系型数据库(RDB)的谓词。 14 **相关模块:**[RDB](_r_d_b.md)
|
H A D | relational__store__error__code_8h.md | 6 声明关系型数据库(RDB)的错误码信息。 14 **相关模块:**[RDB](_r_d_b.md)
|
/ohos5.0/docs/en/application-dev/faqs/ |
H A D | faqs-distributed-data-management.md | 4 ## How do I encrypt an RDB store? (API version 9) 8 To encrypt an RDB store, set **encrypt** in **StoreConfig** to **true** when creating the RDB store. 12 [RDB Store](../reference/apis-arkdata/js-apis-data-relationalStore.md#storeconfig) 23 The RDB store uses SQLite, which does not support the **TRUNCATE TABLE** statement. To clear a tabl… 26 ## What data types are supported by an RDB store? (API version 9) 79 ## How do I obtain RDB store files? (API version 9) 83 Problem of obtaining RDB store files. 122 In API version 8, large text files cannot be saved in RDB stores. 144 ## Can I specify the in-memory database mode when using an RDB store? (API version 9) 151 ## How do I obtain the size of an RDB store? [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/ |
H A D | relational__store_8h.md | 6 Provides APIs to manage a relational database (RDB) store. 14 **Related module**: [RDB](_r_d_b.md) 24 | [OH_Rdb_Config](_o_h___rdb___config.md) | Defines the RDB store configuration.| 25 | [OH_Rdb_Store](_o_h___rdb___store.md) | Defines the RDB store type.| 34 …d) | Defines the statistics of the overall device-cloud upload and download tasks of an RDB store.| 51 | [OH_Rdb_SecurityLevel](_r_d_b.md#oh_rdb_securitylevel) | Defines an enum for RDB store security l… 52 …urityArea](_r_d_b.md#rdb_securityarea) | Defines an enum for security area levels of an RDB store.| 65 | [Rdb_SyncMode](_r_d_b.md#rdb_syncmode) | Defines an enum for RDB sync modes.| 80 …](_r_d_b.md#oh_rdb_securitylevel-1) { S1 = 1, S2, S3, S4} | Enumerates the RDB store security leve… 129 …n) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int \*version) | Obtains the RDB store version.| [all …]
|
H A D | _o_h___rdb___config.md | 6 Defines the RDB store configuration. 10 **Related module**: [RDB](_r_d_b.md) 22 | [storeName](_r_d_b.md#storename) | Name of the RDB store.| 25 | [isEncrypt](_r_d_b.md#isencrypt) | Whether to encrypt the RDB store.| 26 | [securityLevel](_r_d_b.md#securitylevel) | Security level of the RDB store.|
|
H A D | oh__cursor_8h.md | 6 Provides APIs to access the result set obtained by querying the RDB store. 16 **Related module**: [RDB](_r_d_b.md) 33 | [OH_ColumnType](_r_d_b.md#oh_columntype) | Defines an enum for the types of fields in an RDB stor… 41 …EXT,<br>TYPE_BLOB, TYPE_ASSET, TYPE_ASSETS<br>} | Enumerates the types of fields in an RDB store. |
|
H A D | errorcode-data-rdb.md | 1 # RDB Error Codes 40 The RDB store path is invalid. 44 The RDB store path is invalid. 48 Check the RDB store path. 62 The RDB store file has been corrupted. 117 The RDB store or result set is closed. 127 ## 14800015 RDB Store Not Respond 135 The RDB store does not respond. 146 ## 14800016 Duplicate RDB Alias 154 The RDB store alias already exists. [all …]
|
H A D | js-apis-data-dataSharePredicates-sys.md | 64 Currently, only the RDB supports this **DataSharePredicates** object. 94 Currently, only the RDB supports this **DataSharePredicates** object. 151 Currently, only the RDB supports this **DataSharePredicates** object. 183 Currently, only the RDB supports this **DataSharePredicates** object. 215 Currently, only the RDB supports this **DataSharePredicates** object. 373 Currently, only the RDB supports this **DataSharePredicates** object. 405 Currently, only the RDB supports this **DataSharePredicates** object. 438 Currently, only the RDB supports this **DataSharePredicates** object. 599 Currently, only the RDB supports this **DataSharePredicates** object. 624 Currently, only the RDB supports this **DataSharePredicates** object. [all …]
|
H A D | Readme-EN.md | 11 - [@ohos.data.relationalStore (RDB Store)](js-apis-data-relationalStore.md) 12 - [@ohos.data.sendableRelationalStore (Shared RDB Store)](js-apis-data-sendableRelationalStore.md) 28 - [@ohos.data.relationalStore (RDB Store) (System API)](js-apis-data-relationalStore-sys.md) 32 - [@ohos.data.rdb (RDB)](js-apis-data-rdb.md) 40 - [RDB](_r_d_b.md) 78 - [RDB Error Codes](errorcode-data-rdb.md)
|
H A D | _r_d_b.md | 1 # RDB chapter 414 Defines an enum for RDB store security levels. 727 Defines an enum for RDB sync modes. 773 Enumerates the field types in an RDB store. 882 Enumerates the RDB store security levels. 1018 Enumerates the RDB sync modes. 1871 Obtains the RDB store version. 1983 Queries the locked data in an RDB store. 2098 Sets the RDB store version. 3471 Whether to encrypt the RDB store. [all …]
|
H A D | js-apis-data-dataSharePredicates.md | 30 Currently, only the relational database (RDB) and key-value database (KVDB, schema) support this **… 61 Currently, only the RDB and KVDB (schema) support this **DataSharePredicates** object. 86 Currently, only the RDB and KVDB (schema) support this **DataSharePredicates** object. 115 Currently, only the RDB and KVDB (schema) support this **DataSharePredicates** object. 144 Currently, only the RDB and KVDB (schema) support this **DataSharePredicates** object. 174 Currently, only the RDB and KVDB (schema) support this **DataSharePredicates** object.
|
H A D | js-apis-data-relationalStore-sys.md | 1 # @ohos.data.relationalStore (RDB Store) (System API) 8 …re, or relationship of a data entity in an RDB store. It is used to define the operation condition… 9 - [RdbStore](#rdbstore): provides APIs for managing data in an RDB store. 10 …ationalStore.md#resultset): provides APIs for accessing the result set obtained from the RDB store. 26 Defines the configuration of an RDB store. 32 …hable<sup>11+</sup> | boolean | No| Whether the RDB store is searchable. The value **true** means … 38 Enumerates the HA modes of an RDB store. 44 | SINGLE | 0 | Allows data to be written to a single RDB store. | 73 Provides APIs for managing data in an RDB store. 99 For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [RDB … [all …]
|
H A D | _o_h___rdb___store.md | 6 Defines the RDB store type. 10 **Related module**: [RDB](_r_d_b.md)
|
H A D | js-apis-data-relationalStore.md | 1 # @ohos.data.relationalStore (RDB Store) 2133 // Set the RDB store version. 4397 // Check the RDB store integrity. 4563 // Check the RDB store integrity. 6816 Attaches an RDB store to this RDB store so that the data in the attached RDB store can be directly … 6872 // Attach a non-encrypted RDB store to a non-encrypted RDB store. 6888 Attaches an RDB store to this RDB store so that the data in the attached RDB store can be directly … 6944 Example 1: Attach a non-encrypted RDB store to a non-encrypted RDB store. 6972 Example 2: Attach an encrypted RDB store to a non-encrypted RDB store. 7006 Detaches an RDB store from this RDB store. [all …]
|
H A D | oh__predicates_8h.md | 6 Defines the predicates for RDB stores. 14 **Related module**: [RDB](_r_d_b.md)
|
H A D | js-apis-data-rdb.md | 1 # @ohos.data.rdb (RDB Store) 5 This module provides the following RDB-related functions: 7 …re, or relationship of a data entity in an RDB store. It is used to define the operation condition… 8 - [RdbStore](#rdbstore): provides APIs for managing an RDB store. 26 Obtains an RDB store. This API uses an asynchronous callback to return the result. You can set para… 84 Obtains an RDB store. This API uses a promise to return the result. You can set parameters for the … 199 Deletes an RDB store. This API uses a promise to return the result. 305 Defines the RDB store configuration. 315 Defines predicates for an RDB store. This class determines whether the conditional expression for t… 1179 Provides methods to manage an RDB store. [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.2.1/ |
H A D | changelogs-distributeddatamgr.md | 7 After **getRdbStore()** is called, the application determines whether the RDB store is newly create… 9 After **getRdbStore()** is called, the application determines whether the RDB store is newly create… 26 Refer to the following code to set or obtain the RDB store version for an application: 42 // Set the RDB store version, which is a positive integer greater than 0. 45 // Obtain the RDB store version.
|
/ohos5.0/foundation/distributeddatamgr/relational_store/ |
H A D | README_zh.md | 1 # 关系型数据库(Relational Database,RDB)部件 5 **关系型数据库(Relational Database,RDB)** 是一种基于关系模型来管理数据的数据库。OpenHarmony关系型数据库基于SQLite组件提供了一套完整的对本地数据库进行管…
|