/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Attributes | Private Attributes
chop::Chop Class Reference

List of all members.

Public Member Functions

def __init__
def __call__
def __repr__

Static Public Attributes

string tmpl_chop = "delete from %(tab)s, %(tab)sVld using %(tab)s inner join %(tab)sVld where %(tab)s.SEQNO = %(tab)sVld.SEQNO and %(tab)s.SEQNO > %(lastseqno)s "
string tmpl_fixmeta = "update LOCALSEQNO set LASTUSEDSEQNO=(select max(SEQNO) from %(tab)s) where TABLENAME='%(tab)s' "

Private Attributes

 _chop
 _fixmeta

Detailed Description

Pythonization of the scraper scr-chop bash function

Definition at line 35 of file chop.py.


Constructor & Destructor Documentation

def chop::Chop::__init__ (   self,
  tab,
  lastseqno 
)
Delete payload and validity entries with SEQNO greater than the `lastseqno` parameter provided

:param tab: DBI payload table name, eg Demo
:param lastseqno: last SEQNO to be retained by the chop

Definition at line 41 of file chop.py.

00042                                        :
00043         """
00044         Delete payload and validity entries with SEQNO greater than the `lastseqno` parameter provided
00045 
00046         :param tab: DBI payload table name, eg Demo
00047         :param lastseqno: last SEQNO to be retained by the chop
00048         """ 
00049         self._chop    = self.tmpl_chop % locals() 
00050         self._fixmeta = self.tmpl_fixmeta % locals() 


Member Function Documentation

def chop::Chop::__call__ (   self,
  db 
)

Definition at line 51 of file chop.py.

00052                            :
00053         for _ in db(self._chop):
00054             print _
00055         for _ in db(self._fixmeta):
00056             print _
         
def chop::Chop::__repr__ (   self)

Definition at line 57 of file chop.py.

00058                       :
00059         return "\n".join([self._chop, self._fixmeta])
00060 


Member Data Documentation

string chop::Chop::tmpl_chop = "delete from %(tab)s, %(tab)sVld using %(tab)s inner join %(tab)sVld where %(tab)s.SEQNO = %(tab)sVld.SEQNO and %(tab)s.SEQNO > %(lastseqno)s " [static]

Definition at line 39 of file chop.py.

string chop::Chop::tmpl_fixmeta = "update LOCALSEQNO set LASTUSEDSEQNO=(select max(SEQNO) from %(tab)s) where TABLENAME='%(tab)s' " [static]

Definition at line 40 of file chop.py.

chop::Chop::_chop [private]

Definition at line 46 of file chop.py.

Definition at line 46 of file chop.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:57:24 for DybDbi by doxygen 1.7.4