def _insert(self, tree):
tablename = tree.table<EOL>count = <NUM_LIT:0><EOL>kwargs = {}<EOL>batch = self.connection.batch_write(tablename, **kwargs)<EOL>with batch:<EOL><INDENT>for item in iter_insert_items(tree):<EOL><INDENT>batch.put(item)<EOL>count += <NUM_LIT:1><EOL><DEDENT><DEDENT>return count<EOL>
Run an INSERT statement