CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
conddbCopyTest.DB Class Reference

Public Member Functions

def __init__
 
def getLastInsertedSince
 
def setSynchronizationType
 

Detailed Description

Definition at line 13 of file conddbCopyTest.py.

Constructor & Destructor Documentation

def conddbCopyTest.DB.__init__ (   self)

Definition at line 14 of file conddbCopyTest.py.

14 
15  def __init__(self):
16  pass

Member Function Documentation

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

Definition at line 23 of file conddbCopyTest.py.

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

Definition at line 17 of file conddbCopyTest.py.

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