4 #include <openssl/sha.h>
8 namespace persistency {
12 bool RUN_INFO::Table::Table::exists() {
return existsTable(m_schema,
tname); }
16 throwException(
"RUN_INFO table already exists in this schema.",
"RUN_INFO::Table::create");
20 createTable(m_schema, descr.
get());
24 boost::posix_time::ptime&
start,
25 boost::posix_time::ptime&
end) {
44 }
catch (
const coral::AttributeException&
e) {
46 if (message.find(
"Attempt to access data of NULL attribute") != 0)
56 std::vector<std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >& runData) {
65 size_t prevSize = runData.size();
69 return runData.size() > prevSize;
73 const boost::posix_time::ptime& lower,
74 const boost::posix_time::ptime&
upper,
75 std::vector<std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >& runData) {
76 boost::posix_time::ptime
up =
upper;
80 bool found =
q0.retrievedRows();
89 q2.addCondition<
END_TIME>(lower,
">=").addCondition<START_TIME>(
up,
"<=");
90 size_t prevSize = runData.size();
94 return runData.size() > prevSize;
98 const boost::posix_time::ptime&
start,
99 const boost::posix_time::ptime&
end) {
101 insertInTable(m_schema,
tname, dataToInsert.
get());
105 const std::vector<std::tuple<cond::Time_t, boost::posix_time::ptime, boost::posix_time::ptime> >&
runs) {
128 bool created =
false;