To support calling the sqlite3_exec(), the method is added.
Change-Id: I9e8023690302f4c99e13f180808d109b94708bee
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
return true;
}
+ void OneStepExec(const Sql& sql) const {
+ char* errmsg = nullptr;
+ int ret = sqlite3_exec(db_, sql.GetQuery().c_str(), nullptr, nullptr,
+ &errmsg);
+ if (ret != SQLITE_OK) {
+ std::unique_ptr<char, decltype(free)*> errmsg_auto(errmsg, free);
+ throw DbException(errmsg);
+ }
+ }
+
private:
void Bind(int pos, const DbType& type, sqlite3_stmt* stmt) const {
int r;