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 | 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 | |
connection_data | |
engine | |
factory | |
models | |
radius | |
range | |
regexp | |
schema | |
session | |
sessionmaker | |
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 digitizers_cfi.strip.
|
private |
Definition at line 225 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 | ) |
def querying.connection.commit | ( | self | ) |
def querying.connection.global_tag | ( | self, | |
pkargs | |||
) |
Definition at line 203 of file querying.py.
def querying.connection.global_tag_map | ( | self, | |
pkargs | |||
) |
Definition at line 206 of file querying.py.
def querying.connection.hard_close | ( | self | ) |
Definition at line 182 of file querying.py.
def querying.connection.iov | ( | self, | |
pkargs | |||
) |
Definition at line 215 of file querying.py.
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(), Vispa.Gui.Header.Header.setText(), and Vispa.Gui.SimpleDraggableTreeWidget.SimpleDraggableTreeWidget.startDrag().
def querying.connection.object | ( | self, | |
model, | |||
pk_to_value | |||
) |
Definition at line 195 of file querying.py.
References querying.connection.session.
Referenced by Vispa.Views.LineDecayView.LineDecayContainer.createObject(), Vispa.Views.LineDecayView.LineDecayContainer.delete(), Vispa.Views.LineDecayView.DecayLine.delete(), Vispa.Views.LineDecayView.LineDecayContainer.mouseReleaseEvent(), and Vispa.Views.BoxDecayView.BoxDecayContainer.toggleCollapse().
def querying.connection.payload | ( | self, | |
pkargs | |||
) |
Definition at line 218 of file querying.py.
def querying.connection.rollback | ( | self | ) |
def querying.connection.search_everything | ( | self, | |
string, | |||
amount = 10 |
|||
) |
Definition at line 229 of file querying.py.
References querying.connection._oracle_match_format(), ALCARECOTkAlBeamHalo_cff.filter, MessageLogger_cfi.limit, and querying.connection.model().
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.connection_data.
Referenced by o2olib.O2OTool.execute().
def querying.connection.tag | ( | self, | |
pkargs | |||
) |
Definition at line 212 of file querying.py.
def querying.connection.tear_down | ( | self | ) |
Definition at line 171 of file querying.py.
References querying.connection.close_session(), querying.connection.engine, and harvestTrackValidationPlots.str.
def querying.connection.write | ( | self, | |
object | |||
) |
Definition at line 265 of file querying.py.
References querying.connection.schema, 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 277 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(), pos::PixelConfig.write(), AlignmentCorrelationsIORoot.write(), SurveyOutput.write(), AlignmentParametersIO.write(), AlignmentUserVariablesIO.write(), popcon::PopConAnalyzer< S >.write(), popcon::PopCon.write(), MuonAlignmentOutputXML.write(), CSCPairResidualsConstraint.write(), XMLDOMBlock.write(), XMLDocument.write, MuonResidualsTwoBin.write(), presentation.SubsectionBase.write(), DTWorkflow.DTWorkflow.write(), XMLProcessor.write(), MuonResidualsFitter.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.
querying.connection.connection_data |
Definition at line 49 of file querying.py.
Referenced by querying.connection.setup().
querying.connection.engine |
Definition at line 82 of file querying.py.
Referenced by o2o_db_manager.DbManager.connect(), conddblib.Connection.init(), and querying.connection.tear_down().
querying.connection.factory |
Definition at line 90 of file querying.py.
querying.connection.models |
Definition at line 73 of file querying.py.
Referenced by querying.connection.model().
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().
querying.connection.session |
Definition at line 89 of file querying.py.
Referenced by querying.connection.object(), and o2olib.O2OJobMgr.runManager().
querying.connection.sessionmaker |
Definition at line 88 of file querying.py.