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 {
35 boost::posix_time::ptime& insertionTime, boost::posix_time::ptime& modificationTime );
38 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& insertionTime );
40 cond::Time_t lastValidatedTime,
const boost::posix_time::ptime& updateTime );
71 const boost::posix_time::ptime& insertionTime);
73 const cond::Binary& streamerInfoData,
const boost::posix_time::ptime& insertionTime );
91 return "MIN("+SINCE::fullyQualifiedName()+
")";
95 return "CAST("+SINCE::fullyQualifiedName()+
"/"+sgroupSize+
" AS INT )*"+sgroupSize;
114 size_t selectGroups(
const std::string&
tag, std::vector<cond::Time_t>& groups );
115 size_t selectSnapshotGroups(
const std::string&
tag,
const boost::posix_time::ptime& snapshotTime,
116 std::vector<cond::Time_t>& groups );
118 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
120 const boost::posix_time::ptime& snapshotTime,
121 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
122 size_t selectLatest(
const std::string&
tag, std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
124 const boost::posix_time::ptime& snapshotTime,
125 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
129 bool getSnapshotSize(
const std::string&
tag,
const boost::posix_time::ptime& snapshotTime,
size_t&
size );
131 void insertMany(
const std::string&
tag,
const std::vector<std::tuple<cond::Time_t,cond::Hash,boost::posix_time::ptime> >& iovs );
static constexpr unsigned int SINCE_GROUP_SIZE
static std::string group()
ITagLogTable & tagLogTable()
coral::ISchema & m_schema
#define conddb_column(...)
PAYLOAD::Table m_payloadTable
coral::ISchema & m_schema
coral::ISchema & m_schema
unsigned long long Time_t
IPayloadTable & payloadTable()
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
static std::string tableName()
static std::string tableName()
TAG_LOG::Table m_tagLogTable
static std::string fullyQualifiedName()
IOVSchema(coral::ISchema &schema)
coral::ISchema & m_schema
static unsigned int PAYLOAD_HASH_SIZE
static unsigned int PAYLOAD_HASH_SIZE
static std::string fullyQualifiedName()
tuple size
Write out results.
#define conddb_table(NAME)