mirror of
https://gitee.com/openharmony/distributeddatamgr_relational_store
synced 2024-11-23 07:00:41 +00:00
update frameworks/native/rdb/src/sqlite_connection.cpp.
Signed-off-by: 张琼洁 <zhangqiongjie4@huawei.com>
This commit is contained in:
parent
821a3b849f
commit
5dc67c4faf
@ -85,8 +85,10 @@ std::pair<int32_t, std::shared_ptr<Connection>> SqliteConnection::Create(const R
|
||||
int32_t SqliteConnection::Delete(const RdbStoreConfig &config)
|
||||
{
|
||||
auto path = config.GetPath();
|
||||
auto slavePath = SqliteUtils::GetSlavePath(path);
|
||||
for (auto &suffix : FILE_SUFFIXES) {
|
||||
SqliteUtils::DeleteFile(path + suffix.suffix_);
|
||||
SqliteUtils::DeleteFile(slavePath + suffix.suffix_);
|
||||
}
|
||||
return E_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user