(self, fcEncodedList)
return sqlQueries
Called by MySQL and PostgreSQL plugins to write a file on the
        back-end DBMS underlying file system
Called by MySQL and PostgreSQL plugins to write a file on the
        back-end DBMS underlying file system
Called by MySQL and PostgreSQL plugins to write a file on the back - end DBMS underlying file system
def fileToSqlQueries(self, fcEncodedList):
        """
        Called by MySQL and PostgreSQL plugins to write a file on the
        back-end DBMS underlying file system
        """

        counter = 0
        sqlQueries = []

        for fcEncodedLine in fcEncodedList:
            if counter == 0:
                sqlQueries.append("INSERT INTO %s(%s) VALUES (%s)" % (self.fileTblName, self.tblField, fcEncodedLine))
            else:
                updatedField = agent.simpleConcatenate(self.tblField, fcEncodedLine)
                sqlQueries.append("UPDATE %s SET %s=%s" % (self.fileTblName, self.tblField, updatedField))

            counter += 1

        return sqlQueries
def fileToSqlQueries ( self , fcEncodedList ) : counter = 0 sqlQueries = [ ] for fcEncodedLine in fcEncodedList : if counter == 0 : sqlQueries . append ( "INSERT INTO %s(%s) VALUES (%s)" % ( self . fileTblName , self . tblField , fcEncodedLine ) ) else : updatedField = agent . simpleConcatenate ( self . tblField , fcEncodedLine ) sqlQueries . append ( "UPDATE %s SET %s=%s" % ( self . fileTblName , self . tblField , updatedField ) ) counter += 1 return sqlQueries