The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Devel::Ladybug::Stream - Buffered list iteration for Devel::Ladybug tables

PUBLIC CLASS METHODS

  • $class->new($queryClass);

    Use $queryClass->stream instead.

    Create a new buffered stream, for iterating through results from the received class.

PUBLIC INSTANCE METHODS

  • $self->limit

    Returns the current limit value.

  • $self->setLimit($int)

    Sets the maximum number of rows to query before asking the database for the next chunk. Default is 50.

  • $self->offset

    Returns the current offset value.

  • $self->setOffset($int)

    Sets the starting row number. Default is 0.

    This value grows by the limit value each time a chunk is loaded.

  • $self->queryClass

    Returns the current query class

  • $self->setQueryClass($newClass)

    Sets the query class to the received value

  • $self->query

    Returns the current query fragment.

  • $self->setQuery($newQuery)

    Replaces the query fragment used to select from this table.

  • $self->each(), $self->eachTuple()

    These methods are wrappers and work-alikes to the same-named methods in Devel::Ladybug::Array.

SEE ALSO

This file is part of Devel::Ladybug.