NAME
Data::AnyXfer::From::Iterator - transfer from generic sources using the iterator interface
SYNOPSIS
use Moo;
use MooX::Types::MooseLike::Base qw(:all);
extends 'Data::AnyXfer';
with 'Data::AnyXfer::From::Iterator';
...
# Some kind of iterator
has '+source_iterator' => ( default => $iterator; } );
# or, another kind...
has '+source_iterator' => ( default => $default_rs; } );
DESCRIPTION
The role configures Data::AnyXfer to use an iterator object as a data source.
ATTRIBUTES
source_iterator
Any object implementing the common perl idiom for iteration.
The object must have a next
method, which returns one 'thing' (object, document, data structure) at a time, and undef
once exhausted.
COPYRIGHT
This software is copyright (c) 2019, Anthony Lucas.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.