Public Member Functions | |
def | __init__ |
def | close_session |
def | commit |
def | global_tag |
def | global_tag_map |
def | hard_close |
def | iov |
def | model |
def | object |
def | payload |
def | rollback |
def | search_everything |
def | setup |
def | tag |
def | tag_authorization |
def | tear_down |
def | write |
def | write_and_commit |
Static Public Member Functions | |
def | build_frontier_url |
def | build_oracle_url |
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 |
Static Private Member Functions | |
def | _cms_frontier_string |
def | _cms_oracle_string |
def | _get_CMS_frontier_connection_string |
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 |
|
staticprivate |
|
staticprivate |
Definition at line 118 of file querying.py.
References communicate(), and digitizers_cfi.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.
Referenced by querying.connection.tear_down().
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 218 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().
def querying.connection.object | ( | self, | |
model, | |||
pk_to_value | |||
) |
def querying.connection.payload | ( | self, | |
pkargs | |||
) |
Definition at line 221 of file querying.py.
def querying.connection.rollback | ( | self | ) |
Definition at line 289 of file querying.py.
References print().
def querying.connection.search_everything | ( | self, | |
string, | |||
amount = 10 |
|||
) |
Definition at line 232 of file querying.py.
References querying.connection._oracle_match_format(), alcazmumu_cfi.filter, MessageLogger_cff.limit, TritonService::Module.model, 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._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.
Referenced by DTTtrigWorkflow.DTttrigWorkflow.prepare_timeboxes_correction().
def querying.connection.tag_authorization | ( | self, | |
pkargs | |||
) |
Definition at line 215 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 str.
def querying.connection.write | ( | self, | |
object | |||
) |
Definition at line 268 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 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(), presentation.SubsectionBase.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_tests.querying_tests.test_check_connection(), and data_formats_tests.data_formats_tests.test_dicts_to_orm_objects().
|
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(), conddblib.Connection.init(), querying.connection.setup(), 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().
|
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 querying.connection.object(), and o2olib.O2OJobMgr.runManager().
querying.connection.sessionmaker |
Definition at line 88 of file querying.py.