class

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

Inherits Reference / Object

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.

Constructors

new(model : Model.class, result_set : ::DB::ResultSet, joins : Array(Join), annotations : Array(SQL::Annotation::Base), cursor : Int32 = 0, root_model : Model.class | Nil = nil)
Source

Instance methods

advance
Source
cursor
Source
each_annotation
Source
each_joined_relation
Source
each_local_column
Source
each_parent_column
Source