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 std::string(
"MAX(")+SINCE::fullyQualifiedName()+
")";
100 return "("+SINCE::fullyQualifiedName()+
"/"+sgroupSize+
")*"+sgroupSize;
119 size_t selectGroups(
const std::string&
tag, std::vector<cond::Time_t>& groups );
120 size_t selectSnapshotGroups(
const std::string&
tag,
const boost::posix_time::ptime& snapshotTime,
121 std::vector<cond::Time_t>& groups );
123 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
125 const boost::posix_time::ptime& snapshotTime,
126 std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
127 size_t selectLatest(
const std::string&
tag, std::vector<std::tuple<cond::Time_t,cond::Hash> >& iovs);
130 bool getSnapshotSize(
const std::string&
tag,
const boost::posix_time::ptime& snapshotTime,
size_t&
size );
132 void insertMany(
const std::string&
tag,
const std::vector<std::tuple<cond::Time_t,cond::Hash,boost::posix_time::ptime> >& iovs );
156 int statusCode,
const boost::posix_time::ptime& insertionTime);
179 const boost::posix_time::ptime& insertionTime);
181 const boost::posix_time::ptime& insertionTime);
static std::string tableName()
static constexpr unsigned int SINCE_GROUP_SIZE
PAYLOAD::Table m_payloadTable
coral::ISchema & m_schema
std::string parsePoolToken(const std::string &)
coral::ISchema & m_schema
coral::ISchema & m_schema
unsigned long long Time_t
TAG_MIGRATION::Table m_tagMigrationTable
IPayloadTable & payloadTable()
PAYLOAD_MIGRATION::Table m_payloadMigrationTable
bool insert(Storage &iStorage, ItemType *iItem, const IdTag &iIdTag)
static std::string fullyQualifiedName()
coral::ISchema & m_schema
ITagMigrationTable & tagMigrationTable()
static std::string tableName()
static std::string tableName()
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()
IPayloadMigrationTable & payloadMigrationTable()
tuple size
Write out results.