Classes | |
class | _Col |
class | BoostRunMap |
class | Connection |
class | DbRef |
class | GlobalTag |
class | GlobalTagMap |
class | IOV |
class | Payload |
class | RunInfo |
class | Synchronization |
class | Tag |
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) |
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) |
CMS Conditions DB Python library.
|
private |
Definition at line 581 of file conddblib.py.
References submitPVResolutionJobs.count, and ALCARECOTkAlBeamHalo_cff.filter.
Referenced by listObject().
|
private |
Definition at line 453 of file conddblib.py.
References communicate(), and digitizers_cfi.strip.
Referenced by _getCMSSQLAlchemyConnectionString().
|
private |
Definition at line 457 of file conddblib.py.
References _getCMSFrontierConnectionString().
Referenced by make_url().
|
private |
To be used inside filter().
Definition at line 592 of file conddblib.py.
Referenced by listObject().
def conddblib.connect | ( | url, | |
authPath = None , |
|||
verbose = 0 |
|||
) |
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 516 of file conddblib.py.
References oracle_connection_string(), and str.
Referenced by helperFunctions.getTagsMap(), and conddblib.Connection.is_valid().
def conddblib.fq_col | ( | schema, | |
table, | |||
column | |||
) |
def conddblib.fq_name | ( | schema_name, | |
table_name | |||
) |
Definition at line 164 of file conddblib.py.
def conddblib.getPayload | ( | session, | |
hash | |||
) |
Definition at line 644 of file conddblib.py.
References ALCARECOTkAlBeamHalo_cff.filter, and SiPixelPI.one.
def conddblib.getSchema | ( | tp | ) |
def conddblib.getSessionOnMasterDB | ( | session1, | |
session2 | |||
) |
def conddblib.hash | ( | data | ) |
Definition at line 52 of file conddblib.py.
def conddblib.listObject | ( | session, | |
name, | |||
snapshot = None |
|||
) |
Definition at line 605 of file conddblib.py.
References _exists(), _inserted_before(), python.cmstools.all(), ALCARECOTkAlBeamHalo_cff.filter, join(), and hitfit.scalar().
def conddblib.make_dbtype | ( | backendName, | |
schemaName, | |||
baseType | |||
) |
Definition at line 188 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 470 of file conddblib.py.
References _getCMSSQLAlchemyConnectionString().
Referenced by getSessionOnMasterDB(), and helperFunctions.getTagsMap().
def conddblib.oracle_connection_string | ( | db_service, | |
db_schema | |||
) |