mirror of
https://gitee.com/openharmony/distributeddatamgr_relational_store
synced 2024-11-23 15:11:33 +00:00
检视意见修改
Signed-off-by: luyangyang <1049603119@qq.com>
This commit is contained in:
parent
a9f90bd151
commit
7603bfaa98
@ -234,7 +234,7 @@ private:
|
||||
int RegisterDataChangeCallback();
|
||||
void InitDelayNotifier();
|
||||
bool ColHasSpecificField(const std::vector<std::string> &columns);
|
||||
std::pair<int32_t, Stmt> CreateStatementForBackup(const std::string &sql);
|
||||
std::pair<int32_t, Stmt> CreateWriteableStmt(const std::string &sql);
|
||||
std::pair<int32_t, Stmt> GetStatement(const std::string& sql, std::shared_ptr<Connection> conn) const;
|
||||
std::pair<int32_t, Stmt> GetStatement(const std::string& sql, bool read = false) const;
|
||||
int AttachInner(const std::string &attachName,
|
||||
|
@ -126,7 +126,7 @@ private:
|
||||
void DoCloudSync(const std::string &table);
|
||||
int InnerBackup(const std::string& databasePath,
|
||||
const std::vector<uint8_t>& destEncryptKey = std::vector<uint8_t>());
|
||||
std::pair<int32_t, Stmt> CreateStatementForBackup(const std::string &sql);
|
||||
std::pair<int32_t, Stmt> CreateWriteableStmt(const std::string &sql);
|
||||
std::pair<int32_t, Stmt> GetStatement(const std::string& sql, std::shared_ptr<Connection> conn) const;
|
||||
std::pair<int32_t, Stmt> GetStatement(const std::string& sql, bool read = false) const;
|
||||
int AttachInner(const std::string &attachName,
|
||||
|
@ -1163,7 +1163,7 @@ int RdbStoreImpl::InnerBackup(const std::string &databasePath, const std::vector
|
||||
return conn == nullptr ? E_BASE : conn->Backup(databasePath, {}, false, slaveStatus_);
|
||||
}
|
||||
|
||||
auto [errCode, statement] = CreateStatementForBackup(GlobalExpr::CIPHER_DEFAULT_ATTACH_HMAC_ALGO);
|
||||
auto [errCode, statement] = CreateWriteableStmt(GlobalExpr::CIPHER_DEFAULT_ATTACH_HMAC_ALGO);
|
||||
if (errCode != E_OK || statement == nullptr) {
|
||||
return errCode;
|
||||
}
|
||||
@ -2423,7 +2423,7 @@ int32_t RdbStoreImpl::UnlockCloudContainer()
|
||||
}
|
||||
#endif
|
||||
|
||||
std::pair<int32_t, std::shared_ptr<Statement>> RdbStoreImpl::CreateStatementForBackup(const std::string &sql)
|
||||
std::pair<int32_t, std::shared_ptr<Statement>> RdbStoreImpl::CreateWriteableStmt(const std::string &sql)
|
||||
{
|
||||
auto config = config_;
|
||||
config.SetHaMode(HAMode::SINGLE);
|
||||
|
Loading…
Reference in New Issue
Block a user