CMS 3D CMS Logo

List of all members | Public Member Functions
conddbCopyTest.DB Class Reference

Public Member Functions

def __init__ (self)
 
def getLastInsertedSince (self, tag, snapshot)
 
def setSynchronizationType (self, tag, synchType)
 

Detailed Description

Definition at line 13 of file conddbCopyTest.py.

Constructor & Destructor Documentation

◆ __init__()

def conddbCopyTest.DB.__init__ (   self)

Definition at line 14 of file conddbCopyTest.py.

14  def __init__(self):
15  pass
16 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ getLastInsertedSince()

def conddbCopyTest.DB.getLastInsertedSince (   self,
  tag,
  snapshot 
)

Definition at line 23 of file conddbCopyTest.py.

23  def getLastInsertedSince( self, tag, snapshot ):
24  db = sqlite3.connect(fileName)
25  cursor = db.cursor()
26  cursor.execute('SELECT SINCE, INSERTION_TIME FROM IOV WHERE TAG_NAME =? AND INSERTION_TIME >? ORDER BY INSERTION_TIME DESC',(tag,snapshot))
27  row = cursor.fetchone()
28  return row
29 

◆ setSynchronizationType()

def conddbCopyTest.DB.setSynchronizationType (   self,
  tag,
  synchType 
)

Definition at line 17 of file conddbCopyTest.py.

17  def setSynchronizationType( self, tag, synchType ):
18  db = sqlite3.connect(fileName)
19  cursor = db.cursor()
20  cursor.execute('UPDATE TAG SET SYNCHRONIZATION =? WHERE NAME =?',(synchType,tag,))
21  db.commit()
22