exec.cc
Go to the documentation of this file.
1 #include "cetlib/sqlite/exec.h"
3 
4 void
6 {
7  char* errmsg{nullptr};
8  if (sqlite3_exec(db, ddl.c_str(), nullptr, nullptr, &errmsg) != SQLITE_OK) {
9  std::string msg{errmsg};
10  sqlite3_free(errmsg);
12  }
13 }
void msg(const char *fmt,...)
Definition: message.cpp:107
std::string string
Definition: nybbler.cc:12
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:27
struct sqlite3 sqlite3
void exec(sqlite3 *db, std::string const &ddl)
Definition: exec.cc:5