Classes | |
class | _Col |
class | BoostRunMap |
class | Connection |
class | DbRef |
class | GlobalTag |
class | GlobalTagMap |
class | IOV |
class | Payload |
class | RunInfo |
class | Synchronization |
class | Tag |
class | TagAuthorization |
class | TagLog |
class | TagMetadata |
class | TimeType |
Functions | |
def | _exists (session, primary_key, value) |
def | _getCMSFrontierConnectionString (database) |
def | _getCMSSQLAlchemyConnectionString (technology, service, schema_name) |
def | _inserted_before (timestamp) |
def | connect (url, authPath=None, verbose=0, as_admin=False) |
def | fq_col (schema, table, column) |
def | fq_name (schema_name, table_name) |
def | getPayload (session, hash) |
def | getSchema (tp) |
def | getSessionOnMasterDB (session1, session2) |
def | hash (data) |
def | listObject (session, name, snapshot=None) |
def | make_dbtype (backendName, schemaName, baseType) |
def | make_url (database='pro', read_only=True) |
def | oracle_connection_string (db_service, db_schema) |
Variables | |
string | __author__ = 'Miguel Ojeda' |
string | __copyright__ = 'Copyright 2013, CERN' |
list | __credits__ = ['Giacomo Govi', 'Miguel Ojeda', 'Andreas Pfeiffer'] |
string | __email__ = 'giacomo.govi@cern.ch' |
string | __license__ = 'Unknown' |
string | __maintainer__ = 'Giacomo Govi' |
_Base = sqlalchemy.ext.declarative.declarative_base() | |
string | ARC = 'FrontierArc' |
string | authPathEnvVar = 'COND_AUTH_PATH' |
string | contact_help = 'If you need assistance, please write an email to %s and %s. If you need immediate/urgent assistance, you can call the Offline DB expert on call (%s).' % (offline_db_experts_email, web_experts_email, offline_db_experts_phone) |
string | database_help |
dictionary | db_models = {} |
string | dbkey_filename = 'db.key' |
dbkey_folder = os.path.join('.cms_cond',dbkey_filename) | |
string | dbreader_user_name = 'cms_cond_general_r' |
string | dbuser_name = 'cms_conditions' |
string | dbwriter_user_name = 'cms_cond_general_w' |
int | description_length = 4000 |
string | DEV = 'FrontierPrep' |
string | empty_label = '-' |
hash_length = len(hash('')) | |
string | INT = 'FrontierInt' |
logger = logging.getLogger(__name__) | |
int | name_length = 100 |
string | offline_db_experts_email = 'cms-offlinedb-exp@cern.ch' |
string | offline_db_experts_phone = '+41 22 76 70817, or 70817 from CERN; check https://twiki.cern.ch/twiki/bin/viewauth/CMS/DBShifterHelpPage if it does not work; availability depends on the state of the LHC' |
string | ONLINEORAINT = 'cmsintr_lb' |
string | ONLINEORAPRO = 'cms_orcon_prod' |
string | ORAARC = 'cmsarc_lb' |
string | ORADEV = 'cms_orcoff_prep' |
string | ORAINT = 'cms_orcoff_int' |
string | ORAPRO = 'cms_orcon_adg' |
string | PRO = 'PromptProd' |
string | schema_name = 'cms_conditions' |
synch_list = list(x.value for x in list(Synchronization)) | |
string | web_experts_email = 'cms-cond-dev@cern.ch' |
CMS Conditions DB Python library.
|
private |
Definition at line 609 of file conddblib.py.
References submitPVResolutionJobs.count, and ALCARECOTkAlBeamHalo_cff.filter.
Referenced by listObject().
|
private |
Definition at line 470 of file conddblib.py.
References communicate(), and nano_mu_digi_cff.strip.
Referenced by _getCMSSQLAlchemyConnectionString().
|
private |
Definition at line 474 of file conddblib.py.
References _getCMSFrontierConnectionString().
Referenced by make_url().
|
private |
To be used inside filter().
Definition at line 620 of file conddblib.py.
References conddb2hdf5._parse_timestamp().
Referenced by listObject().
Returns a Connection instance to the CMS Condition DB. See database_help for the description of the database parameter. The verbosity level is as follows: 0 = No output (default). 1 = SQL statements issued, including their parameters. 2 = In addition, results of the queries (all rows and the column headers).
Definition at line 533 of file conddblib.py.
References oracle_connection_string(), and str.
Referenced by conddblib.Connection.is_valid().
def conddblib.fq_col | ( | schema, | |
table, | |||
column | |||
) |
def conddblib.fq_name | ( | schema_name, | |
table_name | |||
) |
Definition at line 166 of file conddblib.py.
def conddblib.getPayload | ( | session, | |
hash | |||
) |
Definition at line 672 of file conddblib.py.
References ALCARECOTkAlBeamHalo_cff.filter.
Referenced by TotemT2FramePosition.printXML().
def conddblib.getSchema | ( | tp | ) |
def conddblib.getSessionOnMasterDB | ( | session1, | |
session2 | |||
) |
Definition at line 448 of file conddblib.py.
References make_url().
def conddblib.hash | ( | data | ) |
Definition at line 52 of file conddblib.py.
def conddblib.listObject | ( | session, | |
name, | |||
snapshot = None |
|||
) |
Definition at line 633 of file conddblib.py.
References _exists(), _inserted_before(), python.cmstools.all(), ALCARECOTkAlBeamHalo_cff.filter, and join().
def conddblib.make_dbtype | ( | backendName, | |
schemaName, | |||
baseType | |||
) |
Definition at line 190 of file conddblib.py.
References fq_col().
Referenced by conddblib.Connection.get_dbtype().
def conddblib.make_url | ( | database = 'pro' , |
|
read_only = True |
|||
) |
Definition at line 487 of file conddblib.py.
References _getCMSSQLAlchemyConnectionString().
Referenced by getSessionOnMasterDB().
def conddblib.oracle_connection_string | ( | db_service, | |
db_schema | |||
) |
Definition at line 139 of file conddblib.py.
Referenced by connect().
|
private |
Definition at line 4 of file conddblib.py.
|
private |
Definition at line 5 of file conddblib.py.
|
private |
Definition at line 6 of file conddblib.py.
|
private |
Definition at line 9 of file conddblib.py.
|
private |
Definition at line 7 of file conddblib.py.
|
private |
Definition at line 8 of file conddblib.py.
|
private |
Definition at line 164 of file conddblib.py.
string conddblib.ARC = 'FrontierArc' |
Definition at line 34 of file conddblib.py.
string conddblib.authPathEnvVar = 'COND_AUTH_PATH' |
Definition at line 28 of file conddblib.py.
string conddblib.contact_help = 'If you need assistance, please write an email to %s and %s. If you need immediate/urgent assistance, you can call the Offline DB expert on call (%s).' % (offline_db_experts_email, web_experts_email, offline_db_experts_phone) |
Definition at line 67 of file conddblib.py.
string conddblib.database_help |
Definition at line 68 of file conddblib.py.
dictionary conddblib.db_models = {} |
Definition at line 172 of file conddblib.py.
string conddblib.dbkey_filename = 'db.key' |
Definition at line 29 of file conddblib.py.
conddblib.dbkey_folder = os.path.join('.cms_cond',dbkey_filename) |
Definition at line 30 of file conddblib.py.
string conddblib.dbreader_user_name = 'cms_cond_general_r' |
Definition at line 23 of file conddblib.py.
string conddblib.dbuser_name = 'cms_conditions' |
Definition at line 22 of file conddblib.py.
string conddblib.dbwriter_user_name = 'cms_cond_general_w' |
Definition at line 24 of file conddblib.py.
int conddblib.description_length = 4000 |
Definition at line 60 of file conddblib.py.
string conddblib.DEV = 'FrontierPrep' |
Definition at line 36 of file conddblib.py.
string conddblib.empty_label = '-' |
Definition at line 57 of file conddblib.py.
conddblib.hash_length = len(hash('')) |
Definition at line 61 of file conddblib.py.
string conddblib.INT = 'FrontierInt' |
Definition at line 35 of file conddblib.py.
conddblib.logger = logging.getLogger(__name__) |
Definition at line 25 of file conddblib.py.
Referenced by cond::service::OnlineDBOutputService.getLastLumiProcessed(), cond::persistency::MsgDispatcher.MsgDispatcher(), and cscdqm::Configuration.printStats().
int conddblib.name_length = 100 |
Definition at line 59 of file conddblib.py.
string conddblib.offline_db_experts_email = 'cms-offlinedb-exp@cern.ch' |
Definition at line 64 of file conddblib.py.
string conddblib.offline_db_experts_phone = '+41 22 76 70817, or 70817 from CERN; check https://twiki.cern.ch/twiki/bin/viewauth/CMS/DBShifterHelpPage if it does not work; availability depends on the state of the LHC' |
Definition at line 65 of file conddblib.py.
string conddblib.ONLINEORAINT = 'cmsintr_lb' |
Definition at line 44 of file conddblib.py.
string conddblib.ONLINEORAPRO = 'cms_orcon_prod' |
Definition at line 43 of file conddblib.py.
string conddblib.ORAARC = 'cmsarc_lb' |
Definition at line 39 of file conddblib.py.
string conddblib.ORADEV = 'cms_orcoff_prep' |
Definition at line 42 of file conddblib.py.
string conddblib.ORAINT = 'cms_orcoff_int' |
Definition at line 41 of file conddblib.py.
string conddblib.ORAPRO = 'cms_orcon_adg' |
Definition at line 38 of file conddblib.py.
string conddblib.PRO = 'PromptProd' |
Definition at line 33 of file conddblib.py.
string conddblib.schema_name = 'cms_conditions' |
Definition at line 21 of file conddblib.py.
conddblib.synch_list = list(x.value for x in list(Synchronization)) |
Definition at line 153 of file conddblib.py.
string conddblib.web_experts_email = 'cms-cond-dev@cern.ch' |
Definition at line 63 of file conddblib.py.