refactor
This commit is contained in:
parent
3f3e9b5735
commit
95ff5dd5eb
@ -22,8 +22,8 @@
|
||||
#include "database/db_common.hpp"
|
||||
|
||||
namespace repertory::db {
|
||||
[[nodiscard]] auto execute_sql(sqlite3 &db3, const std::string &sql,
|
||||
std::string &err) -> bool {
|
||||
auto execute_sql(sqlite3 &db3, const std::string &sql,
|
||||
std::string &err) -> bool {
|
||||
char *err_msg{nullptr};
|
||||
auto res = sqlite3_exec(&db3, sql.c_str(), nullptr, nullptr, &err_msg);
|
||||
if (err_msg != nullptr) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user