Home
last modified time | relevance | path

Searched refs:attachName (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_data_operation_test.cpp769 std::string attachName = "EncryptTest002"; variable
770 …teUtils::AttachNewDatabaseInner(db, CipherType::AES_256_GCM, g_passwd, fileUrl, attachName), E_OK);
815 std::string attachName = "EncryptTest003"; variable
816 …(SQLiteUtils::AttachNewDatabase(db, CipherType::AES_256_GCM, g_passwd, fileUrl, attachName), E_OK);
835 std::string attachName = "EncryptTest004"; variable
836 SQLiteUtils::AttachNewDatabase(db, CipherType::AES_256_GCM, g_passwd, fileUrl, attachName);
853 …SQLiteUtils::AttachNewDatabase(db, CipherType::AES_256_GCM, g_passwd2, fileUrl, attachName), E_OK);
950 std::string attachName = "AttachTest002"; variable
951 …(SQLiteUtils::AttachNewDatabase(db, CipherType::AES_256_GCM, g_passwd, fileUrl, attachName), E_OK);
961 std::string dropTableSql1 = "drop table " + attachName + ".student_2;";
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/include/
H A Drdb_store_impl.h71 std::pair<int32_t, int32_t> Attach(const RdbStoreConfig &config, const std::string &attachName,
73 std::pair<int32_t, int32_t> Detach(const std::string &attachName, int32_t waitTime) override;
117 …int AttachInner(const RdbStoreConfig &config, const std::string &attachName, const std::string &db…
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drdb_store.cpp571 …air<int32_t, int32_t> RdbStore::Attach(const RdbStoreConfig &config, const std::string &attachName, in Attach() argument
575 (void)attachName; in Attach()
580 std::pair<int32_t, int32_t> RdbStore::Detach(const std::string &attachName, int32_t waitTime) in Detach() argument
582 (void)attachName; in Detach()
H A Drdb_store_impl.cpp1675 bindArgs.emplace_back(ValueObject(attachName)); in AttachInner()
1702 const RdbStoreConfig &config, const std::string &attachName, int32_t waitTime) in Attach() argument
1718 if (attachedInfo_.Contains(attachName)) { in Attach()
1727 err = AttachInner(config, attachName, dbPath, key, waitTime); in Attach()
1735 err, SqliteUtils::Anonymous(config_.GetName()).c_str(), attachName.c_str(), in Attach()
1739 if (!attachedInfo_.Insert(attachName, dbPath)) { in Attach()
1745 std::pair<int32_t, int32_t> RdbStoreImpl::Detach(const std::string &attachName, int32_t waitTime) in Detach() argument
1750 if (!attachedInfo_.Contains(attachName)) { in Detach()
1759 bindArgs.push_back(ValueObject(attachName)); in Detach()
1769 SqliteUtils::Anonymous(config_.GetName()).c_str(), attachName.c_str()); in Detach()
[all …]
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Drdb_store_impl.h137 std::pair<int32_t, int32_t> Attach(const RdbStoreConfig &config, const std::string &attachName,
139 std::pair<int32_t, int32_t> Detach(const std::string &attachName, int32_t waitTime) override;
210 …int AttachInner(const RdbStoreConfig &config, const std::string &attachName, const std::string &db…
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.21/
H A Dchangelogs-distributeddatamgr.md189 - attach(fullPath: string, attachName: string, waitTime?: number) : Promise<number>;
190 …- attach(context: Context, config: StoreConfig, attachName: string, waitTime?: number) : Promise<n…
191 - detach(attachName: string, waitTime?: number) : Promise<number>;
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/
H A Drdb_store.h671 const RdbStoreConfig &config, const std::string &attachName, int32_t waitTime = 2);
679 virtual std::pair<int32_t, int32_t> Detach(const std::string &attachName, int32_t waitTime = 2);
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/
H A Dnapi_rdb_store.cpp977 std::string attachName; member
1008 errCode = Convert2Value(env, argv[pos++], context->attachName); in Attach()
1009 CHECK_RETURN_SET_E(napi_ok == errCode && !context->attachName.empty(), in Attach()
1021 … GetRdbStoreConfig(context->config, context->param), context->attachName, context->waitTime); in Attach()
1039 std::string attachName; in Detach() member
1048 int32_t errCode = Convert2Value(env, argv[0], context->attachName); in Detach()
1049 CHECK_RETURN_SET_E(napi_ok == errCode && !context->attachName.empty(), in Detach()
1061 auto res = context->rdbStore->Detach(context->attachName, context->waitTime); in Detach()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/
H A Djs-apis-data-relationalStore.md6899 attach(fullPath: string, attachName: string, waitTime?: number) : Promise&lt;number&gt;
6916 | attachName | string | 是 | 表示附加后的数据库的别名。 |
6971 attach(context: Context, config: StoreConfig, attachName: string, waitTime?: number) : Promise&lt;n…
6989 | attachName | string | 是 | 表示附加后的数据库的别名。 |
7089 detach(attachName: string, waitTime?: number) : Promise&lt;number&gt;
7103 | attachName | string | 是 | 表示附加后的数据库的别名。 |
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/
H A Djs-apis-data-relationalStore.md6814 attach(fullPath: string, attachName: string, waitTime?: number) : Promise&lt;number&gt;
6831 | attachName | string | Yes | Alias of the RDB store formed after the attach operation.|
6886 attach(context: Context, config: StoreConfig, attachName: string, waitTime?: number) : Promise&lt;n…
6904 | attachName | string | Yes | Alias of the RDB store formed after the attach operation.|
7004 detach(attachName: string, waitTime?: number) : Promise&lt;number&gt;
7018 | attachName | string | Yes | Alias of the RDB store formed after the attach operation.|