(self)
Send data out.
Send data out.
Send data out .
def flush(self):
        "Send data out."

        if self.flush_hook:
            self.flush_hook(self)

        if self.buf.tell() <= 0:
            return

        self.buf.seek(0)
        if self.sql_from:
            self.dstcurs.copy_expert(self.sql_from, self.buf)
        else:
            self.dstcurs.copy_from(self.buf, self.tablename)
        self.buf.seek(0)
        self.buf.truncate()
def flush ( self ) : if self . flush_hook : self . flush_hook ( self ) if self . buf . tell ( ) <= 0 : return self . buf . seek ( 0 ) if self . sql_from : self . dstcurs . copy_expert ( self . sql_from , self . buf ) else : self . dstcurs . copy_from ( self . buf , self . tablename ) self . buf . seek ( 0 ) self . buf . truncate ( )