Change-Id: Ifb06e1f82e48d0e0222e5e27868327ec7d2d6883
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
PKGMGR_DEPS
PKGMGR_INFO_DEPS
SQLITE_DEPS
+ Boost
)
SET_TARGET_PROPERTIES(${TARGET_LIB_COMMON} PROPERTIES VERSION ${FULLVER})
#include "common/db_manager.h"
+#include <boost/filesystem/operations.hpp>
+
#include <string>
#include <memory>
#include <vector>
}
DBManager::DBManager(const std::string& path) {
+ if (boost::filesystem::exists(path))
+ boost::filesystem::remove(path);
sql_conn_ = std::unique_ptr<SQLConnection>(new SQLiteConnection(path, false));
if (!InitTable(sql_conn_))
LOG(ERROR) << "Failed to initialize table";