class Crecto::Repo::QueryIterator(T)

Overview

QueryIterator provides memory-efficient iteration over large result sets Implements Crystal's Iterator interface for constant memory usage

Included Modules

Defined in:

crecto/repo/query.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(result_set : DB::ResultSet, queryable : T.class, batch_size : Int32 = 1000) #

[View source]

Instance Method Detail

def next #
Description copied from module Iterator(T)

Returns the next element in this iterator, or Iterator::Stop::INSTANCE if there are no more elements.


[View source]
def processed_count #

[View source]
def rewind #

[View source]