1 #ifndef CondCore_CondDB_IOVSchema_h
2 #define CondCore_CondDB_IOVSchema_h
7 #include <boost/date_time/posix_time/posix_time.hpp>
11 namespace persistency {
26 explicit Table(coral::ISchema& schema);
28 bool exists()
override;
39 boost::posix_time::ptime& insertionTime,
40 boost::posix_time::ptime& modificationTime)
override;
48 const boost::posix_time::ptime& insertionTime)
override;
53 const boost::posix_time::ptime& updateTime)
override;
56 const boost::posix_time::ptime& updateTime)
override;
59 const boost::posix_time::ptime& updateTime)
override;
79 explicit Table(coral::ISchema& schema);
81 bool exists()
override;
93 const boost::posix_time::ptime& insertionTime);
97 const boost::posix_time::ptime& insertionTime)
override;
112 static constexpr
size_t size = 0;
116 std::string sgroupSize = std::to_string(groupSize);
117 return "CAST(" + SINCE::fullyQualifiedName() +
"/" + sgroupSize +
" AS INT )*" + sgroupSize;
123 static constexpr
size_t size = 0;
130 static constexpr
size_t size = 0;
137 static constexpr
size_t size = 0;
144 explicit Table(coral::ISchema& schema);
146 bool exists()
override;
150 unsigned long long groupSize,
151 std::vector<cond::Time_t>& groups)
override;
156 std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override;
166 std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override;
170 const boost::posix_time::ptime& insertTime)
override;
173 const std::vector<std::tuple<cond::Time_t, cond::Hash, boost::posix_time::ptime> >& iovs)
override;
175 void eraseMany(
const std::string&
tag,
const std::vector<std::tuple<cond::Time_t, cond::Hash> >& iovs)
override;
194 explicit Table(coral::ISchema& schema);
196 bool exists()
override;
199 const boost::posix_time::ptime& eventTime,
213 explicit IOVSchema(coral::ISchema& schema);