def __insert(self):
if len(self.__buffer) > <NUM_LIT:0>:<EOL><INDENT>statement = self.__table.insert()<EOL>if self.__autoincrement:<EOL><INDENT>statement = statement.returning(<EOL>getattr(self.__table.c, self.__autoincrement))<EOL>statement = statement.values(self.__buffer)<EOL>res = statement.execute()<EOL>for id, in res:<EOL><INDENT>row = self.__buffer.pop(<NUM_LIT:0>)<EOL>yield WrittenRow(row, False, id)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>statement.execute(self.__buffer)<EOL>for row in self.__buffer:<EOL><INDENT>yield WrittenRow(row, False, None)<EOL><DEDENT><DEDENT>self.__buffer = []<EOL><DEDENT>
Insert rows to table