Public Member Functions | |
def | __init__ (self, connection_data, mode=None, map_blobs=False, secrets=None, pooling=False) |
def | close_session (self) |
def | commit (self) |
def | global_tag (self, pkargs) |
def | global_tag_map (self, pkargs) |
def | hard_close (self) |
def | iov (self, pkargs) |
def | model (self, model_name) |
def | object (self, model, pk_to_value) |
def | payload (self, pkargs) |
def | rollback (self) |
def | search_everything (self, string, amount=10) |
def | setup (self) |
def | tag (self, pkargs) |
def | tag_authorization (self, pkargs) |
def | tear_down (self) |
def | write (self, object) |
def | write_and_commit (self, object) |
Static Public Member Functions | |
def | build_frontier_url (db_name, schema) |
def | build_oracle_url (user, pwd, db_name) |
Public Attributes | |
factory | |
models | |
radius | |
range | |
regexp | |
schema | |
sessionmaker | |
Static Public Attributes | |
connection = None | |
connection_data = None | |
engine = None | |
netrc_authenticators = None | |
secrets = None | |
session = None | |
Private Member Functions | |
def | _oracle_match_format (self, string) |
Static Private Member Functions | |
def | _cms_frontier_string (database, schema="cms_conditions") |
def | _cms_oracle_string (user, pwd, db_name) |
def | _get_CMS_frontier_connection_string (database) |
Private Attributes | |
_pooling | |
Definition at line 23 of file querying.py.
def querying.connection.__init__ | ( | self, | |
connection_data, | |||
mode = None , |
|||
map_blobs = False , |
|||
secrets = None , |
|||
pooling = False |
|||
) |
Definition at line 35 of file querying.py.
|
staticprivate |
Get database string for frontier.
Definition at line 126 of file querying.py.
|
staticprivate |
Get database string for oracle.
Definition at line 134 of file querying.py.
|
staticprivate |
Definition at line 118 of file querying.py.
References communicate(), and nano_mu_digi_cff.strip.
|
private |
Definition at line 228 of file querying.py.
Referenced by querying.connection.search_everything().
|
static |
Definition at line 157 of file querying.py.
|
static |
Build the connection url, and get credentials from self.secrets dictionary.
Definition at line 141 of file querying.py.
def querying.connection.close_session | ( | self | ) |
Definition at line 178 of file querying.py.
References querying.connection.session.
Referenced by querying.connection.tear_down().
def querying.connection.commit | ( | self | ) |
Definition at line 273 of file querying.py.
References querying.connection.rollback(), and querying.connection.session.
Referenced by querying.connection.tear_down(), and querying.connection.write_and_commit().
def querying.connection.global_tag | ( | self, | |
pkargs | |||
) |
Definition at line 203 of file querying.py.
References querying.connection.factory, and querying.connection.object().
def querying.connection.global_tag_map | ( | self, | |
pkargs | |||
) |
Definition at line 206 of file querying.py.
References querying.connection.factory, and querying.connection.object().
def querying.connection.hard_close | ( | self | ) |
Definition at line 182 of file querying.py.
References cms::xerces.dispose(), and querying.connection.engine.
def querying.connection.iov | ( | self, | |
pkargs | |||
) |
Definition at line 218 of file querying.py.
References querying.connection.factory, and querying.connection.object().
def querying.connection.model | ( | self, | |
model_name | |||
) |
Definition at line 187 of file querying.py.
References querying.connection.models.
Referenced by querying.connection.search_everything().
def querying.connection.object | ( | self, | |
model, | |||
pk_to_value | |||
) |
Definition at line 195 of file querying.py.
References querying.connection.session.
Referenced by querying.connection.global_tag(), querying.connection.global_tag_map(), querying.connection.iov(), querying.connection.payload(), querying.connection.tag(), and querying.connection.tag_authorization().
def querying.connection.payload | ( | self, | |
pkargs | |||
) |
Definition at line 221 of file querying.py.
References querying.connection.factory, and querying.connection.object().
def querying.connection.rollback | ( | self | ) |
Definition at line 289 of file querying.py.
References print(), and querying.connection.session.
Referenced by querying.connection.commit().
def querying.connection.search_everything | ( | self, | |
string, | |||
amount = 10 |
|||
) |
Definition at line 232 of file querying.py.
References querying.connection._oracle_match_format(), ALCARECOTkAlBeamHalo_cff.filter, lut2db_cfg.limit, TOoLLiPProducer.model, L1MetPfProducer.model, TritonService::Module.model, L1TCaloSummary< INPUT, OUTPUT >.model, querying.connection.model(), and querying.connection.session.
def querying.connection.setup | ( | self | ) |
Setup engine with given credentials from netrc file, and make a session maker.
Definition at line 76 of file querying.py.
References querying.connection._pooling, querying.connection.connection_data, querying.connection.engine, and querying.engine_from_dictionary().
Referenced by o2olib.O2OTool.execute().
def querying.connection.tag | ( | self, | |
pkargs | |||
) |
Definition at line 212 of file querying.py.
References querying.connection.factory, and querying.connection.object().
def querying.connection.tag_authorization | ( | self, | |
pkargs | |||
) |
Definition at line 215 of file querying.py.
References querying.connection.factory, and querying.connection.object().
def querying.connection.tear_down | ( | self | ) |
Definition at line 171 of file querying.py.
References querying.connection.close_session(), querying.connection.commit(), querying.connection.engine, querying.connection.session, and str.
def querying.connection.write | ( | self, | |
object | |||
) |
Definition at line 268 of file querying.py.
References PVValHelper.add(), querying.connection.schema, querying.connection.session, and models.session_independent_object().
Referenced by pkg.AbstractPkg.generate(), and querying.connection.write_and_commit().
def querying.connection.write_and_commit | ( | self, | |
object | |||
) |
Definition at line 280 of file querying.py.
References cond::persistency::CondDBTransaction.commit(), cond::persistency::ITransaction.commit(), cond::persistency::Transaction.commit(), cond::persistency::TransactionScope.commit(), querying.connection.commit(), AlignmentCorrelationsIO.write(), AlignmentCorrelationsIORoot.write(), SurveyOutput.write(), AlignmentParametersIO.write(), popcon::PopConAnalyzer< S >.write(), AlignmentUserVariablesIO.write(), popcon::PopCon.write(), ProduceDropBoxMetadata.write, MuonAlignmentOutputXML.write(), XMLDOMBlock.write(), CSCPairResidualsConstraint.write(), MuonResidualsTwoBin.write(), DTWorkflow.DTWorkflow.write(), XMLProcessor.write(), MuonResidualsFitter.write(), StraightTrackAlignment::RPSetPlots.write(), betterConfigParser.BetterConfigParser.write(), querying.connection.write(), and querying.connection.write_and_commit().
Referenced by querying.connection.write_and_commit().
|
private |
Definition at line 37 of file querying.py.
Referenced by querying.connection.setup().
|
static |
Definition at line 25 of file querying.py.
Referenced by querying.factory.object(), shell_tests.shell_tests.tearDown(), querying_tests.querying_tests.tearDown(), data_formats_tests.data_formats_tests.tearDown(), data_sources_tests.data_sources_tests.tearDown(), querying_tests.result_type_tests.tearDown(), querying_tests.tag_tests.test_all_tags_empty_tag(), querying_tests.tag_tests.test_all_tags_non_empty_tag(), querying_tests.querying_tests.test_check_connection(), data_formats_tests.data_formats_tests.test_dicts_to_orm_objects(), querying_tests.result_type_tests.test_factory_empty_result(), querying_tests.result_type_tests.test_factory_multiple_results(), querying_tests.result_type_tests.test_factory_no_result(), querying_tests.global_tag_map_tests.test_get_empty_global_tag_map(), querying_tests.iov_tests.test_get_empty_iov(), querying_tests.payload_tests.test_get_empty_payload(), querying_tests.tag_tests.test_get_empty_tag(), querying_tests.global_tag_map_tests.test_get_global_tag_map(), querying_tests.iov_tests.test_get_iov(), querying_tests.iov_tests.test_get_iovs_by_iov_query(), querying_tests.tag_tests.test_get_parent_global_tags(), querying_tests.payload_tests.test_get_parent_tags_payload(), querying_tests.payload_tests.test_get_payload(), querying_tests.tag_tests.test_get_tag(), data_formats_tests.data_formats_tests.test_orm_objects_to_dicts(), querying_tests.misc_tests.test_search_everything(), data_sources_tests.data_sources_tests.test_type_all_iovs(), data_sources_tests.data_sources_tests.test_type_all_tags(), data_sources_tests.data_sources_tests.test_type_parent_global_tags(), and querying_tests.payload_tests.test_type_parent_tags().
|
static |
Definition at line 27 of file querying.py.
Referenced by querying.connection.setup().
|
static |
Definition at line 24 of file querying.py.
Referenced by o2o_db_manager.DbManager.connect(), querying.connection.hard_close(), conddblib.Connection.init(), conddblib.Connection.is_valid(), querying.connection.setup(), and querying.connection.tear_down().
querying.connection.factory |
Definition at line 90 of file querying.py.
Referenced by querying.connection.global_tag(), querying.connection.global_tag_map(), querying.connection.iov(), querying.connection.payload(), querying.connection.tag(), and querying.connection.tag_authorization().
querying.connection.models |
Definition at line 73 of file querying.py.
Referenced by querying.connection.model().
|
static |
Definition at line 28 of file querying.py.
querying.connection.radius |
Definition at line 43 of file querying.py.
querying.connection.range |
Definition at line 42 of file querying.py.
querying.connection.regexp |
Definition at line 44 of file querying.py.
querying.connection.schema |
Definition at line 50 of file querying.py.
Referenced by o2o_db_manager.DbManager.get_url(), and querying.connection.write().
|
static |
Definition at line 29 of file querying.py.
|
static |
Definition at line 26 of file querying.py.
Referenced by o2olib.O2OJobMgr.add(), querying.connection.close_session(), querying.connection.commit(), o2olib.O2OJobMgr.dumpConfig(), o2olib.O2ORunMgr.endJob(), o2olib.O2OJobMgr.listConfig(), o2olib.O2OJobMgr.listJobs(), querying.connection.object(), querying.connection.rollback(), o2olib.O2OJobMgr.runManager(), querying.connection.search_everything(), o2olib.O2OJobMgr.set(), o2olib.O2OJobMgr.setConfig(), o2olib.O2OJobMgr.setInterval(), o2olib.O2ORunMgr.startJob(), querying.connection.tear_down(), and querying.connection.write().
querying.connection.sessionmaker |
Definition at line 88 of file querying.py.