23 #include <boost/date_time/posix_time/posix_time.hpp> 24 #include <odb/core.hxx> 39 #pragma db object optimistic 85 friend class odb::access;
94 #pragma db view object(LogEntry) 97 #pragma db column("count(" + LogEntry::id_ + ")") This is the header file for a generated source file, GitSHA1.cpp.
static QueryResult retrieve(DBPtr database, int page_number, int page_size, bool order_asc)
boost::posix_time::ptime timestamp_
std::string run_id_
The run_id is generated when Leosac starts, and it is used to identify "runs" (ie if Leosac restarts)...
Structure holding the result for a retrieve() call.
std::vector< LogEntry > entries
std::shared_ptr< odb::database > DBPtr