#include <IOVSchemaUtility.h>
Public Member Functions | |
bool | createIOVContainer () |
create iov tables More... | |
void | createPayloadContainer (const std::string &payloadName, const std::string &payloadTypeName) |
create a payload container More... | |
void | dropAll () |
drop all More... | |
bool | dropIOVContainer () |
drop iov tables if existing More... | |
void | dropPayloadContainer (const std::string &payloadName) |
drop iov tables if existing More... | |
bool | existsIOVContainer () |
IOVSchemaUtility (DbSession &session) | |
IOVSchemaUtility (DbSession &session, std::ostream &log) | |
~IOVSchemaUtility () | |
Private Attributes | |
std::ostream * | m_log |
cond::DbSession & | m_session |
Definition at line 6 of file IOVSchemaUtility.h.
|
explicit |
Definition at line 6 of file IOVSchemaUtility.cc.
cond::IOVSchemaUtility::IOVSchemaUtility | ( | cond::DbSession & | session, |
std::ostream & | log | ||
) |
Definition at line 11 of file IOVSchemaUtility.cc.
cond::IOVSchemaUtility::~IOVSchemaUtility | ( | ) |
Definition at line 15 of file IOVSchemaUtility.cc.
bool cond::IOVSchemaUtility::createIOVContainer | ( | ) |
create iov tables
Definition at line 27 of file IOVSchemaUtility.cc.
References cond::DbSession::COND_SCHEMA_VERSION, ora::Database::connectionString(), cond::IOVNames::container(), ora::Database::containers(), ora::Database::create(), ora::Database::createContainer(), EcalCondDB::db, and ora::Database::exists().
Referenced by cond::IOVEditor::createIOVContainerIfNecessary().
void cond::IOVSchemaUtility::createPayloadContainer | ( | const std::string & | payloadName, |
const std::string & | payloadTypeName | ||
) |
create a payload container
Definition at line 55 of file IOVSchemaUtility.cc.
References ora::Database::connectionString(), ora::Database::containers(), ora::Database::createContainer(), and EcalCondDB::db.
void cond::IOVSchemaUtility::dropAll | ( | ) |
drop all
Definition at line 75 of file IOVSchemaUtility.cc.
References ora::Database::connectionString(), EcalCondDB::db, and ora::Database::drop().
bool cond::IOVSchemaUtility::dropIOVContainer | ( | ) |
drop iov tables if existing
Definition at line 43 of file IOVSchemaUtility.cc.
References ora::Database::connectionString(), cond::IOVNames::container(), ora::Database::containers(), EcalCondDB::db, and ora::Database::dropContainer().
void cond::IOVSchemaUtility::dropPayloadContainer | ( | const std::string & | payloadName | ) |
drop iov tables if existing
Definition at line 64 of file IOVSchemaUtility.cc.
References ora::Database::connectionString(), ora::Database::containers(), EcalCondDB::db, and ora::Database::dropContainer().
bool cond::IOVSchemaUtility::existsIOVContainer | ( | ) |
Definition at line 17 of file IOVSchemaUtility.cc.
References cond::IOVNames::container(), ora::Database::containers(), EcalCondDB::db, ora::Database::exists(), and run_regression::ret.
Referenced by cond::IOVEditor::createIOVContainerIfNecessary().
|
private |
Definition at line 30 of file IOVSchemaUtility.h.
|
private |
Definition at line 29 of file IOVSchemaUtility.h.