30 if(m_log) *m_log <<
"INFO: Creating condition database in "<<db.
connectionString()<<std::endl;
59 if( conts.find( payloadName ) != conts.end())
throw cond::Exception(
"Container \""+payloadName+
"\" already exists.");
60 if(m_log) *m_log <<
"INFO: Creating container \"" << payloadName <<
"\" in "<<db.
connectionString()<<std::endl;
67 if( conts.find( payloadName )!=conts.end() ){
68 if(m_log) *m_log <<
"INFO: Dropping container \"" << payloadName <<
"\" from "<<db.
connectionString()<<std::endl;
72 if(m_log) *m_log <<
"WARNING: container \"" << payloadName <<
"\" does not exist in the database "<<db.
connectionString()<<std::endl;
77 if(m_log) *m_log <<
"INFO: Dropping database in "<<db.
connectionString()<<std::endl;
bool create(std::string userSchemaVersion=std::string(""))
const std::string & connectionString()
void dropPayloadContainer(const std::string &payloadName)
drop iov tables if existing
static const char * COND_SCHEMA_VERSION
std::set< std::string > containers()
bool dropIOVContainer()
drop iov tables if existing
bool dropContainer(const std::string &name)
IOVSchemaUtility(DbSession &session)
static std::string container()
void createPayloadContainer(const std::string &payloadName, const std::string &payloadTypeName)
create a payload container
bool existsIOVContainer()
bool createIOVContainer()
create iov tables
Container createContainer(const std::string &name)