class Marten::DB::Query::SQL::RowIterator

Overview

Allows to iterate over the rows of a result set.

The RowIterator class allows to easily iterate over each local column of a given model and each of its associated relations so that they can in turn be initialized properly from their local column values when selected joins are used.

Defined in:

marten/db/query/sql/row_iterator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(model : Model.class, result_set : ::DB::ResultSet, joins : Array(Join), cursor : Int32 = 0) #

[View source]

Instance Method Detail

def advance #

[View source]
def cursor : Int32 #

[View source]
def each_joined_relation(&) #

[View source]
def each_local_column(&) #

[View source]