| Trees | Index | Help | 
 | 
|---|
| Module ESVersionManager :: Class ESVersionManager | 
 | 
ESFileTypes--+ |SQLUtil--+ |ESInit--+ | ESVersionManager
| Method Summary | |
|---|---|
| Initialize database pointer, cursor, db type (MySQL or SQLite). | |
| Check if new list overlap with a list of run-ranges in DB | |
| Compare two list of run-ranges. | |
| Search for latest timeStamp in Version table, it will assign a day ahead for non existing grade. | |
| Form a new run-range list for given grade/timeStamp from badRunList or use goodRunList for make it | |
| Form a query for given grade/time to lookup in Version table | |
| Main method to move a grade in EventStore. | |
| Set list of runs to be excluded | |
| Set list of runs to be excluded | |
| Set upper run range bound to be used | |
| Set lower run range bound to be used | |
| Set data version name to be used | |
| Inherited from ESFileTypes | |
| integer | Check if given file type is allowed in EventStore. | 
| integer | Check if given file type is allowed for injection in EventStore. | 
| list | Return a list of known file types supported in EventStore. | 
| list | Return a list of known file types supported in EventStore which allowed for injection. | 
| integer | Check if given file type is data file. | 
| integer | Check if given file type is index file. | 
| integer | Check if given file type is location file. | 
| Inherited from SQLUtil | |
| Close cursor and db connector | |
| Explicit commit | |
| Create table(s) in EventStore database. | |
| Drop table in EventStore | |
| Update EventStore db log and invoke COMMIT transaction. | |
| Update a EventStore log and retrieve all rows for given query | |
| Update a EventStore log and retrieve one row for given query | |
| Find location of the data file holding given run | |
| Get all parents for given child name | |
| Get isolation level of SQLite DB | |
| Get last autoincemented id for given table | |
| Return a list of table names in EventStore DB | |
| Return list of tables from DB | |
| Return EventStore table schema | |
|  | |
| Lock tables in EventStore. | |
| Return the following dictionary: dict[time]=[(grade,minR,maxR,svName)] | |
| Print content of given table in EventStore DB | |
| Dump EventStore DB content in user readable format. | |
| Print list of runs for given run range | |
| Rollback transaction | |
| Set flag which will inform underlying DB what to do with transaction commits. | |
| Set isolation level for internal DB (necessary to perform SQLite transactions. | |
| Set verbose level, 0 low, 1 is high. | |
| Print all dependencies for given data version name. | |
| Update EventStore db log and invoke BEGIN transaction. | |
| Unlock all locked tables in EventStore | |
|  | |
| Update EventStore log and execute given query. | |
| Update EventStore db log with time/pid/msg signature | |
| Method Details | 
|---|
| __init__(self,
          db,
          dbType,
          logFile)
    Initialize database pointer, cursor, db type (MySQL or SQLite). 
  Retrieve information about table names from underlying DB. | 
| checkRunsInDB(self, grade, tStamp)Check if new list overlap with a list of run-ranges in DB | 
| diffLists(self, list1, list2)Compare two list of run-ranges. Order lists and look first if for intersection between them, if found show difference between list1 and list2 | 
| findLatestTimeStamp(self, iGrade)Search for latest timeStamp in Version table, it will assign a day ahead for non existing grade. | 
| formNewRunList(self, iGrade='', iTime='')Form a new run-range list for given grade/timeStamp from badRunList or use goodRunList for make it | 
| formQuery(self, iGrade, iTime)Form a query for given grade/time to lookup in Version table | 
| moveGrade(self, iGrade, oGrade, iTime, oTime)Main method to move a grade in EventStore. It accepts old/new grade and timeStamp. Based on user settings it can make a duplicates, exclude some runs while moving one grade into another. | 
| setExcludeRunList(self, runList)Set list of runs to be excluded | 
| setGoodRunList(self, runList)Set list of runs to be excluded | 
| setMaxRun(self, maxR)Set upper run range bound to be used | 
| setMinRun(self, minR)Set lower run range bound to be used | 
| setSVName(self, svName)Set data version name to be used | 
| Trees | Index | Help | 
 | 
|---|
| Generated by Epydoc 2.1 on Tue Jan 24 10:46:00 2006 | http://epydoc.sf.net |