Home
last modified time | relevance | path

Searched refs:Database (Results 1 – 25 of 125) sorted by relevance

12345

/ohos5.0/base/security/security_guard/services/data_collect/store/src/
H A Ddatabase.cpp32 void Database::CreateRdbStore(const NativeRdb::RdbStoreConfig &config, int version, in CreateRdbStore()
48 int Database::BatchInsert(int64_t &outInsertNum, const std::string &table, in BatchInsert()
58 int Database::Update(int &changedRows, const NativeRdb::ValuesBucket &values, in Update()
77 std::shared_ptr<NativeRdb::ResultSet> Database::Query( in Query()
87 int Database::ExecuteSql(const std::string &sql) in ExecuteSql()
96 int Database::ExecuteAndGetLong(int64_t &outValue, const std::string &sql, in ExecuteAndGetLong()
115 int Database::BeginTransaction() in BeginTransaction()
124 int Database::RollBack() in RollBack()
133 int Database::Commit() in Commit()
142 int Database::Attach(const std::string &alias, const std::string &pathName, in Attach()
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/cloud/
H A Dcloud_server.h28 using Database = SchemaMeta::Database;
34 …virtual int32_t Subscribe(int32_t userId, const std::map<std::string, std::vector<Database>> &dbs);
35 …virtual int32_t Unsubscribe(int32_t userId, const std::map<std::string, std::vector<Database>> &db…
37 const std::string &bundleName, int user, const Database &dbMeta);
38 … virtual std::shared_ptr<AssetLoader> ConnectAssetLoader(uint32_t tokenId, const Database &dbMeta);
39 …hared_ptr<CloudDB> ConnectCloudDB(const std::string &bundleName, int user, const Database &dbMeta);
40 virtual std::shared_ptr<CloudDB> ConnectCloudDB(uint32_t tokenId, const Database &dbMeta);
H A Dschema_meta.h39 struct API_EXPORT Database final : public Serializable {
50 using Database = Database;
79 std::vector<Database> databases;
84 Database GetDataBase(const std::string &storeId);
/ohos5.0/base/security/asset/services/db_operator/src/test/
H A Dtest_database.rs27 database::Database,
60 fn open_db_and_insert_data() -> Database { in open_db_and_insert_data()
66Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owner_info(),… in open_db_and_insert_data()
81 fn backup_db(db: &Database) { in backup_db() argument
90Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owner_info(),… in create_and_drop_database()
94 assert!(Database::delete(0, &db.db_name).is_ok()); in create_and_drop_database()
106 let _ = Database::delete(0, &db.db_name); in database_version()
117 let _ = Database::delete(0, &db.db_name); in error_sql()
125Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owner_info(),… in create_delete_asset_table()
132 let _ = Database::delete(0, &db.db_name); in create_delete_asset_table()
[all …]
H A Dtest_table.rs22 database::Database,
37Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owner_info(),… in create_delete_table()
53Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owner_info(),… in table_restore()
83 fn insert_test_data() -> Database { in insert_test_data()
86 …let db = Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owne… in insert_test_data()
156 …let db = Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owne… in single_data()
189 …let db = Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owne… in multiple_data()
231 …let db = Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owne… in insert_query_row()
261 …let db = Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owne… in update_delete_row()
289 …let db = Database::build(calling_info.user_id(), calling_info.owner_type_enum(), calling_info.owne… in upgrade_table()
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/cloud/
H A Dcloud_server.cpp43 int32_t CloudServer::Subscribe(int32_t userId, const std::map<std::string, std::vector<Database>> &… in Subscribe()
48 int32_t CloudServer::Unsubscribe(int32_t userId, const std::map<std::string, std::vector<Database>>… in Unsubscribe()
53 …AssetLoader> CloudServer::ConnectAssetLoader(uint32_t tokenId, const CloudServer::Database &dbMeta) in ConnectAssetLoader()
59 const std::string &bundleName, int user, const CloudServer::Database &dbMeta) in ConnectAssetLoader()
64 std::shared_ptr<CloudDB> CloudServer::ConnectCloudDB(uint32_t tokenId, const CloudServer::Database in ConnectCloudDB()
70 const std::string &bundleName, int user, const CloudServer::Database &dbMeta) in ConnectCloudDB()
H A Dschema_meta.cpp38 std::vector<std::string> Database::GetTableNames() const in GetTableNames()
51 bool Database::Marshal(Serializable::json &node) const in Marshal()
59 bool Database::Unmarshal(const Serializable::json &node) in Unmarshal()
105 Database SchemaMeta::GetDataBase(const std::string &storeId) in GetDataBase()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/service_impl/
H A Dtypes.rs118 pub struct Database { struct
124 impl From<&ipc_conn::Database> for Database { implementation
125 fn from(value: &ipc_conn::Database) -> Self { in from()
130 Database { in from()
138 impl TryFrom<&Database> for ipc_conn::Database { implementation
140 fn try_from(value: &Database) -> Result<Self, SyncError> { in try_from()
146 Ok(ipc_conn::Database { in try_from()
154 impl Database { implementation
156 pub fn new(name: String, alias: String, tables: HashMap<String, Table>) -> Database { in new() argument
157 Database { in new()
H A Dcloud_service.rs16 use crate::service_impl::types::Database;
72 dbs: &HashMap<String, Vec<Database>>, in subscribe() argument
116 databases: Vec<Database>,
141 pub fn databases(&self) -> &[Database] { in databases() argument
150 dbs.push(Database::from(db)); in from()
/ohos5.0/base/security/asset/services/plugin/src/
H A Dasset_plugin.rs18 database::{get_path, Database},
133 …let mut db = Database::build_with_file_name(self.user_id, &db_name, false).map_err(|e| e.code as u… in add()
140 …let mut db = Database::build_with_file_name(self.user_id, &db_name, true).map_err(|e| e.code as u3… in ce_add()
147 …let mut db = Database::build_with_file_name(self.user_id, &db_name, false).map_err(|e| e.code as u… in replace()
154 …let mut db = Database::build_with_file_name(self.user_id, &db_name, true).map_err(|e| e.code as u3… in ce_replace()
163 …let mut db = Database::build_with_file_name(self.user_id, &db_name, false).map_err(|e| e.code as u… in query()
174 …let mut db = Database::build_with_file_name(self.user_id, &db_name, true).map_err(|e| e.code as u3… in ce_query()
185 …let mut db = Database::build_with_file_name(self.user_id, &db_name, false).map_err(|e| e.code as u… in remove()
196 …let mut db = Database::build_with_file_name(self.user_id, &db_name, true).map_err(|e| e.code as u3… in ce_remove()
227 …let mut db = Database::build_with_file_name(self.user_id, &db_name, true).map_err(|e| e.code as u3… in ce_remove_with_specific_cond()
[all …]
/ohos5.0/base/security/security_guard/services/data_collect/
H A Dsg_collect_service.map23 OHOS::Security::SecurityGuard::Database::BatchInsert*;
24 OHOS::Security::SecurityGuard::Database::CreateRdbStore*;
25 OHOS::Security::SecurityGuard::Database::Count*;
26 OHOS::Security::SecurityGuard::Database::Query*;
27 OHOS::Security::SecurityGuard::Database::Delete*;
28 OHOS::Security::SecurityGuard::Database::Insert*;
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
H A Dcloud_test.cpp28 using Database = SchemaMeta::Database; typedef
90 SchemaMeta::Database database;
106 Database database2 = schemaMeta2.GetDataBase(TEST_CLOUD_STORE);
110 Database database3 = schemaMeta2.GetDataBase(storeId);
155 SchemaMeta::Database database1;
162 SchemaMeta::Database database2;
/ohos5.0/docs/en/application-dev/database/
H A Ddata-reliability-security-overview.md9 - Database encryption: The database that stores sensitive information, such as authentication crede…
23 ### Database Backup and Restore
25 - Database backup: A full backup is performed for OpenHarmony database files.
28 - Database restore: Database data can be restored from a database backup file. After the data resto…
31 ### Database Encryption
46 ### Database Backup and Restore Mechanism
55 ### Database Encryption Mechanism
H A DReadme-EN.md21 - [Database Backup and Restore](data-backup-and-restore.md)
22 - [Database Encryption](data-encryption.md)
24 - [Using an EL5 Database](encrypted_estore_guidelines.md)
/ohos5.0/base/security/asset/services/db_operator/src/
H A Dtransaction.rs21 use crate::database::Database;
26 db: &'a Database,
31 pub(crate) fn new(db: &'a Database) -> Transaction<'a> { in new()
H A Ddatabase.rs95 pub struct Database { struct
104 pub type UpgradeDbCallback = fn(db: &Database, old_ver: u32, new_ver: u32) -> Result<()>;
152 …let mut db = Database { path, backup_path, handle: 0, db_lock: lock, db_name: db_name.to_string() … in get_db()
160 pub(crate) fn get_normal_db(user_id: i32, db_name: &str, is_ce: bool) -> Result<Database> { in get_normal_db() argument
185 pub fn create_db_instance(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<Database> { in create_db_instance() argument
188 let db = Database::build( in create_db_instance()
197 let db = Database::build( in create_db_instance()
208 impl Database { impl
210 …fn build(user_id: i32, owner_type: OwnerType, owner_info: &[u8], is_ce: bool) -> Result<Database> { in build() argument
219 pub fn build_with_file_name(user_id: i32, db_name: &str, is_ce: bool) -> Result<Database> { in build_with_file_name() argument
[all …]
H A Ddatabase_file_upgrade.rs28 …ckup_path, fmt_de_db_path_with_name, get_db, get_normal_db, get_split_db_lock_by_user_id, Database,
76 fn get_db_before_split(user_id: i32) -> Result<Database> { in get_db_before_split() argument
98 fn get_new_db(user_id: i32, info_map: &DbMap) -> Result<Database> { in get_new_db() argument
132 fn calculate_batch_split_times(old_data_query_condition: &DbMap, old_db: &mut Database) -> Result<u… in calculate_batch_split_times()
138 old_db: &mut Database, in migrate_data() argument
139 new_db: &mut Database, in migrate_data() argument
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/
H A Djs-apis-distributedKVStore-sys.md58 | 15100003 | Database corrupted. |
59 | 15100005 | Database or result set already closed. |
123 | 15100003 | Database corrupted. |
124 | 15100005 | Database or result set already closed. |
181 | 15100003 | Database corrupted. |
182 | 15100005 | Database or result set already closed. |
319 | 15100003 | Database corrupted. |
320 | 15100005 | Database or result set already closed. |
388 | 15100003 | Database corrupted. |
389 | 15100005 | Database or result set already closed. |
[all …]
H A Derrorcode-distributedKVStore.md52 Database corrupted.
94 Database or result set already closed.
H A Djs-apis-distributedKVStore.md2822 | 15100003 | Database corrupted. |
2823 | 15100005 | Database or result set already closed. |
3098 | 15100005 | Database or result set already closed. |
3163 | 15100005 | Database or result set already closed. |
3217 | 15100003 | Database corrupted. |
3219 | 15100005 | Database or result set already closed. |
3279 | 15100003 | Database corrupted. |
3281 | 15100005 | Database or result set already closed. |
3332 | 15100003 | Database corrupted. |
4969 | 15100003 | Database corrupted. |
[all …]
/ohos5.0/base/security/security_guard/services/data_collect/store/include/
H A Ddatabase.h28 class Database {
30 Database() = default;
31 ~Database() = default;
/ohos5.0/base/security/security_guard/test/unittest/data_collect/include/
H A Ddatabase.h28 class Database {
30 Database() = default;
31 ~Database() = default;
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/
H A Djs-apis-distributedKVStore-sys.md58 | 15100003 | Database corrupted. |
59 | 15100005 | Database or result set already closed. |
127 | 15100003 | Database corrupted. |
128 | 15100005 | Database or result set already closed. |
189 | 15100003 | Database corrupted. |
190 | 15100005 | Database or result set already closed. |
327 | 15100003 | Database corrupted. |
328 | 15100005 | Database or result set already closed. |
396 | 15100003 | Database corrupted. |
397 | 15100005 | Database or result set already closed. |
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/c_adapter/
H A Dbasic_rust_types.rs57 Database(Vec<types::Database>), enumerator
65 VecDatabase(Vec<Vec<types::Database>>),
80 VecDatabase(HashMap<String, Vec<types::Database>>),
99 OhCloudExtRustType::DATABASE => VectorCffi::Database(vec![]), in OhCloudExtVectorNew()
134 VectorCffi::Database(_) => OhCloudExtRustType::DATABASE, in OhCloudExtVectorGetValueTyp()
198 VectorCffi::Database(vec) => { in OhCloudExtVectorPush()
272 VectorCffi::Database(v) => vec.push(v), in OhCloudExtVectorPush()
349 VectorCffi::Database(vec) => { in OhCloudExtVectorGet()
350 get_content_clone!(vec, index, value, OhCloudExtDatabase, Database) in OhCloudExtVectorGet()
432 VectorCffi::Database(vec) => *len = vec.len() as c_uint, in OhCloudExtVectorGetLength()
[all …]
/ohos5.0/foundation/distributeddatamgr/relational_store/
H A DREADME_zh.md1 # 关系型数据库(Relational Database,RDB)部件
5 **关系型数据库(Relational Database,RDB)** 是一种基于关系模型来管理数据的数据库。OpenHarmony关系型数据库基于SQLite组件提供了一套完整的对本地数据库进行管…

12345