Variables | |
string | authpath = '/afs/cern.ch/user/x/xiezhen' |
string | myconstr = 'oracle://devdb10/cms_xiezhen_dev' |
tuple | schema = session.nominalSchema() |
tuple | session = svc.openSession(isReadOnly=False,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
tuple | svc = sessionManager.sessionManager(myconstr,authpath=authpath,debugON=False) |
tuple | tables = createTables(schema) |
def lumidbDDL.createFKConstraints | ( | schema | ) |
Definition at line 449 of file lumidbDDL.py.
def lumidbDDL.createIndices | ( | schema | ) |
Definition at line 434 of file lumidbDDL.py.
def lumidbDDL.createNULLConstraints | ( | schema | ) |
Definition at line 457 of file lumidbDDL.py.
def lumidbDDL.createOldSchema | ( | schema | ) |
create tables of lumidb1 if not exist
Definition at line 236 of file lumidbDDL.py.
References nameDealer.cmsrunsummaryTableName(), nameDealer.hltTableName(), nameDealer.lumidetailTableName(), nameDealer.lumisummaryTableName(), nameDealer.lumivalidationTableName(), nameDealer.trghltMapTableName(), and nameDealer.trgTableName().
def lumidbDDL.createTables | ( | schema | ) |
create new tables if not exist revisions,revisions_id,luminorms,luminorms_entries,luminorms_entries_id,fillscheme
Definition at line 8 of file lumidbDDL.py.
References nameDealer.cmsrunsummaryTableName(), nameDealer.fillschemeTableName(), nameDealer.hltdataTableName(), nameDealer.hltTableName(), nameDealer.lshltTableName(), nameDealer.lstrgTableName(), nameDealer.lumidataTableName(), nameDealer.luminormTableName(), nameDealer.lumisummaryv2TableName(), nameDealer.lumivalidationTableName(), nameDealer.revisionTableName(), nameDealer.trgdataTableName(), and nameDealer.trghltMapTableName().
Referenced by lumidb2Schema.createLumi(), and oldToNew().
def lumidbDDL.createUniqueConstraints | ( | schema | ) |
Definition at line 469 of file lumidbDDL.py.
def lumidbDDL.describe | ( | schema | ) |
Definition at line 482 of file lumidbDDL.py.
def lumidbDDL.describeIndices | ( | schema | ) |
Definition at line 445 of file lumidbDDL.py.
def lumidbDDL.dropFKConstrains | ( | schema | ) |
Definition at line 453 of file lumidbDDL.py.
def lumidbDDL.dropIndices | ( | schema | ) |
Definition at line 441 of file lumidbDDL.py.
def lumidbDDL.dropNULLConstraints | ( | schema | ) |
Definition at line 464 of file lumidbDDL.py.
def lumidbDDL.dropTables | ( | schema, | |
tablelist | |||
) |
Definition at line 222 of file lumidbDDL.py.
References nameDealer.entryTableName(), nameDealer.hltdataTableName(), nameDealer.hltTableName(), nameDealer.idTableName(), nameDealer.lumidataTableName(), nameDealer.lumidetailTableName(), nameDealer.luminormTableName(), nameDealer.lumisummaryTableName(), nameDealer.lumisummaryv2TableName(), nameDealer.revmapTableName(), nameDealer.trgdataTableName(), and nameDealer.trgTableName().
Referenced by lumidb2Schema.dropLumi(), and newToOld().
def lumidbDDL.dropUNIQUEConstraints | ( | schema | ) |
Definition at line 477 of file lumidbDDL.py.
def lumidbDDL.newToOld | ( | schema | ) |
Definition at line 413 of file lumidbDDL.py.
References nameDealer.cmsrunsummaryTableName(), dropTables(), and mergeVDriftHistosByStation.name.
Referenced by PrimaryVertexSorter< ParticlesCollection >.produce().
def lumidbDDL.oldToNew | ( | schema | ) |
modify old tables:cmsrunsummary alter table cmsrunsummary add column(l1key string,egev unsigned int,amodetag string)
Definition at line 399 of file lumidbDDL.py.
References nameDealer.cmsrunsummaryTableName(), and createTables().
Referenced by PrimaryVertexSorter< ParticlesCollection >.produce().
string lumidbDDL.authpath = '/afs/cern.ch/user/x/xiezhen' |
Definition at line 490 of file lumidbDDL.py.
string lumidbDDL.myconstr = 'oracle://devdb10/cms_xiezhen_dev' |
Definition at line 489 of file lumidbDDL.py.
tuple lumidbDDL.schema = session.nominalSchema() |
Definition at line 494 of file lumidbDDL.py.
tuple lumidbDDL.session = svc.openSession(isReadOnly=False,cpp2sqltype=[('unsigned int','NUMBER(10)'),('unsigned long long','NUMBER(20)')]) |
Definition at line 493 of file lumidbDDL.py.
tuple lumidbDDL.svc = sessionManager.sessionManager(myconstr,authpath=authpath,debugON=False) |
Definition at line 492 of file lumidbDDL.py.
tuple lumidbDDL.tables = createTables(schema) |
Definition at line 496 of file lumidbDDL.py.