Example #1
0
 def applyFile2DB(self,infile,confs,conn = None):
     self.DEALLINES = 0
     lineparser = LineParserBase(confs)
     while lineparser.parseMultiLine(infile, self.LINES_LIMITS):
         self.applyDict2DB(lineparser.getOutData(), conn)
     return self.DEALLINES
Example #2
0
 def appendFile2DB(self,infile,cfgparser,conn = None):
     lineparser = LineParserBase(cfgparser)
     while lineparser.parseMultiLine(infile, 1000):
         self.appendDict2DB(lineparser.getTableData(), conn)