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 12 of file conddbCopyTest.py.

Constructor & Destructor Documentation

def conddbCopyTest.DB.__init__ (   self)

Definition at line 13 of file conddbCopyTest.py.

13  def __init__(self):
14  pass
15 

Member Function Documentation

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

Definition at line 22 of file conddbCopyTest.py.

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

Definition at line 16 of file conddbCopyTest.py.

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