28 ISISDB(
bool integrity_check);
39 int exec(
const char* sql,
int (*callback)(
void*,
int,
char**,
char**),
void* arg)
43 int ret = sqlite3_exec(
m_db, sql, callback, arg, &errmsg);
46 _snprintf_s(last_error,
sizeof(last_error), _TRUNCATE,
"SELOGGER: SQLITE error %s", errmsg);
48 throw(std::exception(last_error));
56 #include "Poco/SingletonHolder.h"
57 #include "Poco/Data/Common.h"
58 #include "Poco/Data/SessionPool.h"
59 #include "Poco/Data/SQLite/Connector.h"
60 #include "Poco/Data/MySQl/Connector.h"
61 #include "Poco/Data/RecordSet.h"
68 Poco::Data::SQLite::Connector::registerConnector();
73 session.setProperty(
"maxRetryAttempts", 1000000);
76 Poco::Data::Statement stmt(session);
79 poco_assert(stmt.done());
static const char * db_file
ISISDB(bool integrity_check)
Poco::SingletonHolder< SQLITESessionPool > sqlite_session_pool
void customizeSession(Poco::Data::Session &session)
static const char * isisdb_per_session_sql
static std::list< sqlite3 * > db_list
int exec(const char *sql, int(*callback)(void *, int, char **, char **), void *arg)
static char last_error[1024]