NAME

Tangram::Cursor - traverse a result set

SYNOPSIS

	use Tangram;
   
	$cursor = $storage->cursor( $query_obj, $filter );

	while (my $obj = $cursor->current())
	{
		# process $obj
		$cursor->next();
	}

DESCRIPTION

A Cursor makes it possible to iterate over a result set without loading all the objects in memory.

INSTANCE METHODS

current

Returns the current object, or undef() if the result set is exhausted.

current

Moves to the next object in the result set, if any. Returns the new current object, or undef() if the result set is exhausted.

MULTIPLE CURSORS

Each Cursor has its own connection to the database, thus making it possible to have multiple active cursors.

SEE ALSO

Tangram::Storage