1 package DBIx::Data::Stream::STH;
4 use Method::Signatures::Simple;
6 has 'sth' => (is => 'ro', required => 1, clearer => '_clear_sth');
8 has '_column_order' => (is => 'ro', required => 1, init_arg => 'column_order');
13 # {Active} only means that there *may* be more results to fetch
14 if ($sth->{Active} and my @next = $self->sth->fetchrow_array) {
15 my %next; @next{@{$self->_column_order}} = @next;
19 # prepare_cached might recycle it now we're finished so get rid of it
24 __PACKAGE__->meta->make_immutable;