Static Public Member Functions | |
def | class_name_to_column |
Public Attributes | |
db_name | |
factory | |
models | |
schema | |
sessionmaker | |
Static Public Attributes | |
base = None | |
connection = None | |
connection_data = None | |
engine = None | |
netrc_authenticators = None | |
int | row_limit = 1000 |
secrets = None | |
session = None | |
Private Member Functions | |
def | _cms_frontier_string |
def | _cms_oracle_string |
def | _get_CMS_frontier_connection_string |
def | _oracle_match_format |
Definition at line 15 of file querying.py.
def querying.connection.__init__ | ( | self, | |
connection_data | |||
) |
try: import cx_Oracle except ImportError as e: exit("cx_Oracle cannot be imported - try to run 'source /data/cmssw/setupEnv.sh' and 'source venv/bin/activate'.")
Definition at line 27 of file querying.py.
References querying.connection.connection_data, and split.
def querying.connection.__repr__ | ( | self | ) |
Definition at line 194 of file querying.py.
References querying.connection.db_name.
|
private |
Definition at line 135 of file querying.py.
References querying.connection._get_CMS_frontier_connection_string().
Referenced by querying.connection.build_frontier_url().
|
private |
|
private |
Definition at line 127 of file querying.py.
References communicate(), and cmsRelvalreport.exit.
Referenced by querying.connection._cms_frontier_string().
|
private |
Definition at line 252 of file querying.py.
Referenced by querying.connection.search_everything().
def querying.connection.build_frontier_url | ( | self, | |
db_name, | |||
schema | |||
) |
Definition at line 173 of file querying.py.
References querying.connection._cms_frontier_string(), and reco.print().
def querying.connection.build_oracle_url | ( | self, | |
user, | |||
pwd, | |||
db_name | |||
) |
Definition at line 144 of file querying.py.
References querying.connection._cms_oracle_string(), and reco.print().
|
static |
Definition at line 198 of file querying.py.
References join().
def querying.connection.close_session | ( | self | ) |
def querying.connection.commit | ( | self | ) |
Definition at line 305 of file querying.py.
References querying.connection.connection_data, reco.print(), and querying.connection.session.
Referenced by querying.connection.write_and_commit().
def querying.connection.deepcopy_model | ( | self, | |
model | |||
) |
def querying.connection.global_tag | ( | self, | |
pkargs | |||
) |
Definition at line 230 of file querying.py.
def querying.connection.global_tag_map | ( | self, | |
pkargs | |||
) |
Definition at line 233 of file querying.py.
def querying.connection.global_tag_map_request | ( | self, | |
pkargs | |||
) |
Definition at line 236 of file querying.py.
def querying.connection.iov | ( | self, | |
pkargs | |||
) |
Definition at line 242 of file querying.py.
def querying.connection.model | ( | self, | |
model_name | |||
) |
Definition at line 213 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 222 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 245 of file querying.py.
def querying.connection.record | ( | self, | |
pkargs | |||
) |
Definition at line 248 of file querying.py.
def querying.connection.search_everything | ( | self, | |
string, | |||
amount = 10 |
|||
) |
Definition at line 256 of file querying.py.
References querying.connection._oracle_match_format(), alcazmumu_cfi.filter, MessageLogger_cff.limit, and querying.connection.model().
def querying.connection.setup | ( | self | ) |
def querying.connection.tag | ( | self, | |
pkargs | |||
) |
Definition at line 239 of file querying.py.
Referenced by Inspector.Inspector.SetTag().
def querying.connection.write | ( | self, | |
object | |||
) |
Definition at line 294 of file querying.py.
References querying.connection.connection_data, reco.print(), querying.connection.schema, and querying.connection.session.
Referenced by pkg.AbstractPkg.generate(), and querying.connection.write_and_commit().
def querying.connection.write_and_commit | ( | self, | |
object | |||
) |
Definition at line 312 of file querying.py.
References cond::persistency::CondDBTransaction.commit(), ora::Transaction.commit(), cond::persistency::ITransaction.commit(), ora::ScopedTransaction.commit(), cond::persistency::Transaction.commit(), cond::persistency::TransactionScope.commit(), querying.connection.commit(), ora::PVectorWriter.write(), pos::PixelConfig.write(), AlignmentCorrelationsIO.write(), ora::IBlobStreamingService.write(), ora::IRelationalWriter.write(), AlignmentCorrelationsIORoot.write(), SurveyOutput.write(), ora::QueryableVectorWriter.write(), ora::CArrayWriter.write(), ora::OraPtrWriter.write(), ora::UniqueRefWriter.write(), AlignmentParametersIO.write(), AlignmentUserVariablesIO.write(), ora::STLContainerWriter.write(), popcon::PopConAnalyzer< S >.write(), ora::ObjectWriter.write(), popcon::PopCon.write(), ora::PrimitiveWriter.write(), MuonAlignmentOutputXML.write(), ora::InlineCArrayWriter.write(), ora::OraReferenceWriter.write(), ora::BlobWriter.write(), ora::DependentClassWriter.write(), CSCPairResidualsConstraint.write(), XMLDOMBlock.write(), ora::NamedRefWriter.write(), ora::ITokenWriter.write(), XMLDocument.write, MuonResidualsTwoBin.write(), XMLProcessor.write(), betterConfigParser.BetterConfigParser.write(), MuonResidualsFitter.write(), and querying.connection.write().
|
static |
Definition at line 21 of file querying.py.
|
static |
Definition at line 18 of file querying.py.
Referenced by testing_classes.querying_tests.test_check_connection(), and testing_classes.data_formats_tests.test_dicts_to_orm_objects().
|
static |
Definition at line 20 of file querying.py.
Referenced by querying.connection.__init__(), querying.connection.commit(), testing_classes.script_tests.test_script(), testing_classes.script_tests.test_script_with_decorator(), and querying.connection.write().
querying.connection.db_name |
Definition at line 75 of file querying.py.
Referenced by querying.connection.__repr__(), compare_using_files_v2.RootFileComparison.compare(), ValidationMatrix_v2.ReleaseComparison.compare(), compare_using_files_v2.RootFileComparison.was_compared(), and ValidationMatrix_v2.ReleaseComparison.was_compared().
|
static |
Definition at line 17 of file querying.py.
Referenced by conddblib.Connection.init().
querying.connection.factory |
Definition at line 92 of file querying.py.
querying.connection.models |
Definition at line 69 of file querying.py.
Referenced by querying.connection.model().
|
static |
Definition at line 22 of file querying.py.
|
static |
Definition at line 16 of file querying.py.
querying.connection.schema |
Definition at line 58 of file querying.py.
Referenced by querying.connection.write().
|
static |
Definition at line 23 of file querying.py.
|
static |
Definition at line 19 of file querying.py.
Referenced by querying.connection.commit(), querying.connection.object(), and querying.connection.write().
querying.connection.sessionmaker |
Definition at line 90 of file querying.py.