25 #ifndef SQLITEDATABASECONNECTOR_H 26 #define SQLITEDATABASECONNECTOR_H 32 #if defined(HAVE_SQLITE3_H) 34 #elif defined(HAVE_SQLITE_H) 37 # error "SQLite is required. Please install SQLite." 41 #include "../../presageException.h" 47 const bool read_write);
50 const bool read_write,
51 const std::string logger_level);
71 static int callback(
void *pArg,
int argc,
char **argv,
char **columnNames);
73 #if defined(HAVE_SQLITE3_H) 75 #elif defined(HAVE_SQLITE_H) 81 #endif // SQLITEDATABASECONNECTOR_H
SqliteDatabaseConnector(const std::string db, const size_t cardinality, const bool read_write)
PresageException(presage_error_code_t code, const std::string &msg)
virtual void closeDatabase()
SqliteDatabaseConnectorException()
SqliteDatabaseConnectorException(presage_error_code_t code, const std::string &errormsg)
static int callback(void *pArg, int argc, char **argv, char **columnNames)
virtual NgramTable executeSql(const std::string query) const
std::vector< Ngram > NgramTable
virtual ~SqliteDatabaseConnectorException()
virtual void openDatabase()
virtual const presage_error_code_t code() const
~SqliteDatabaseConnector()