/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/include/ |
H A D | relational_store.h | 515 int OH_Rdb_ExecuteByTrxId(OH_Rdb_Store *store, int64_t trxId, const char *sql); 577 int OH_Rdb_BeginTransWithTrxId(OH_Rdb_Store *store, int64_t *trxId); 591 int OH_Rdb_RollBackByTrxId(OH_Rdb_Store *store, int64_t trxId); 605 int OH_Rdb_CommitByTrxId(OH_Rdb_Store *store, int64_t trxId);
|
/ohos5.0/foundation/distributeddatamgr/relational_store/test/ndk/unittest/ |
H A D | rdb_store_configv2_test.cpp | 106 int64_t trxId = 0; in VdbTest002() local 107 EXPECT_EQ(OH_Rdb_ErrCode::RDB_OK, OH_Rdb_BeginTransWithTrxId(store, &trxId)); in VdbTest002() 109 EXPECT_EQ(OH_Rdb_ErrCode::RDB_OK, OH_Rdb_ExecuteByTrxId(store, trxId, insertSql)); in VdbTest002() 110 EXPECT_EQ(OH_Rdb_ErrCode::RDB_OK, OH_Rdb_CommitByTrxId(store, trxId)); in VdbTest002()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/include/ |
H A D | rdb_store_impl.h | 47 …<int32_t, ValueObject> Execute(const std::string &sql, const Values &args, int64_t trxId) override; 57 int RollBack(int64_t trxId) override; 59 int Commit(int64_t trxId) override; 102 int ExecuteByTrxId(const std::string &sql, int64_t trxId, bool closeConnAfterExecute = false,
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rdb_store.cpp | 296 …<int32_t, ValueObject> RdbStore::Execute(const std::string &sql, const Values &args, int64_t trxId) in Execute() argument 380 int RdbStore::RollBack(int64_t trxId) in RollBack() argument 382 (void)trxId; in RollBack() 391 int RdbStore::Commit(int64_t trxId) in Commit() argument 393 (void)trxId; in Commit()
|
H A D | rdb_store_impl.cpp | 1218 if (config_.IsVector() && trxId > 0) { in Execute() 1219 return { ExecuteByTrxId(sql, trxId, false, args), ValueObject() }; in Execute() 1937 if (trxId == 0) { in ExecuteByTrxId() 1941 if (!trxConnMap_.Contains(trxId)) { in ExecuteByTrxId() 1946 auto result = trxConnMap_.Find(trxId); in ExecuteByTrxId() 1961 trxConnMap_.Erase(trxId); in ExecuteByTrxId() 1965 trxConnMap_.Erase(trxId); in ExecuteByTrxId() 1970 int RdbStoreImpl::RollBack(int64_t trxId) in RollBack() argument 1973 return ExecuteByTrxId(ROLLBACK_TRANSACTION_SQL, trxId, true); in RollBack() 2027 int RdbStoreImpl::Commit(int64_t trxId) in Commit() argument [all …]
|
H A D | trans_db.cpp | 193 …r<int32_t, ValueObject> TransDB::Execute(const std::string &sql, const Values &args, int64_t trxId) in Execute() argument 195 (void)trxId; in Execute()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | rdb_store_impl.h | 96 …<int32_t, ValueObject> Execute(const std::string &sql, const Values &args, int64_t trxId) override; 106 int RollBack(int64_t trxId) override; 108 int Commit(int64_t trxId) override; 179 int ExecuteByTrxId(const std::string &sql, int64_t trxId, bool closeConnAfterExecute = false,
|
H A D | trans_db.h | 34 …<int32_t, ValueObject> Execute(const std::string &sql, const Values &args, int64_t trxId) override;
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkdata/ |
H A D | relational__store_8h.md | 107 …b_executebytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId, const char \*sql)… 108 …transwithtrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t \*trxId) | 在开始执行SQL语句之前,开始… 109 …_rollbackbytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId) | 使用指定的事务ID, 回滚已经… 110 …db_commitbytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId) | 使用指定的事务ID, 提交已经…
|
H A D | _r_d_b.md | 130 …b_executebytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId, const char \*sql)… 132 …_rollbackbytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId) | 使用指定的事务ID, 回滚已经… 133 …db_commitbytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId) | 使用指定的事务ID, 提交已经… 1063 int OH_Rdb_BeginTransWithTrxId (OH_Rdb_Store *store, int64_t *trxId ) 1077 | trxId | 事务ID, 作为出参使用。 | 1091 int OH_Rdb_CommitByTrxId (OH_Rdb_Store *store, int64_t trxId ) 1105 | trxId | 表示需要提交的事务的ID。 | 1191 int OH_Rdb_ExecuteByTrxId (OH_Rdb_Store *store, int64_t trxId, const char *sql ) 1205 | trxId | 调用[OH_Rdb_BeginTransWithTrxId](#oh_rdb_begintranswithtrxid)获得的事务ID,当设置为0时,表示不启用事务。 | 1243 int OH_Rdb_RollBackByTrxId (OH_Rdb_Store *store, int64_t trxId ) [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/ |
H A D | relational_store.cpp | 531 int OH_Rdb_ExecuteByTrxId(OH_Rdb_Store *store, int64_t trxId, const char *sql) in OH_Rdb_ExecuteByTrxId() argument 538 … (rdbStore->GetStore()->Execute(sql, std::vector<OHOS::NativeRdb::ValueObject>{}, trxId)).first); in OH_Rdb_ExecuteByTrxId() 568 int OH_Rdb_BeginTransWithTrxId(OH_Rdb_Store *store, int64_t *trxId) in OH_Rdb_BeginTransWithTrxId() argument 571 if (rdbStore == nullptr || trxId == nullptr) { in OH_Rdb_BeginTransWithTrxId() 575 *trxId = res.second; in OH_Rdb_BeginTransWithTrxId() 579 int OH_Rdb_RollBackByTrxId(OH_Rdb_Store *store, int64_t trxId) in OH_Rdb_RollBackByTrxId() argument 585 return ConvertorErrorCode::NativeToNdk(rdbStore->GetStore()->RollBack(trxId)); in OH_Rdb_RollBackByTrxId() 588 int OH_Rdb_CommitByTrxId(OH_Rdb_Store *store, int64_t trxId) in OH_Rdb_CommitByTrxId() argument 594 return ConvertorErrorCode::NativeToNdk(rdbStore->GetStore()->Commit(trxId)); in OH_Rdb_CommitByTrxId()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/ |
H A D | rdb_store.h | 409 …<int32_t, ValueObject> Execute(const std::string &sql, const Values &args = {}, int64_t trxId = 0); 497 virtual int RollBack(int64_t trxId); 504 virtual int Commit(int64_t trxId);
|
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/ |
H A D | relational__store_8h.md | 107 …b_executebytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId, const char \*sql)… 108 …transwithtrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t \*trxId) | Starts a transa… 109 …_rollbackbytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId) | Rolls back the … 110 …db_commitbytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId) | Commits the exe…
|
H A D | _r_d_b.md | 131 …transwithtrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t \*trxId) | Starts a transa… 132 …_rollbackbytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId) | Rolls back the … 133 …db_commitbytrxid) ([OH_Rdb_Store](_o_h___rdb___store.md) \*store, int64_t trxId) | Commits the exe… 1063 int OH_Rdb_BeginTransWithTrxId (OH_Rdb_Store *store, int64_t *trxId ) 1077 | trxId | Pointer to the transaction ID obtained.| 1091 int OH_Rdb_CommitByTrxId (OH_Rdb_Store *store, int64_t trxId ) 1105 | trxId | Transaction ID.| 1191 int OH_Rdb_ExecuteByTrxId (OH_Rdb_Store *store, int64_t trxId, const char *sql ) 1205 | trxId | Transaction ID returned by [OH_Rdb_BeginTransWithTrxId](#oh_rdb_begintranswithtrxid). The… 1243 int OH_Rdb_RollBackByTrxId (OH_Rdb_Store *store, int64_t trxId ) [all …]
|