class

Post::Collection

Inherits Lustra::Model::CollectionBase < Lustra::SQL::SelectBuilder < Lustra::SQL::Query::WithPagination < Lustra::SQL::Query::BeforeQuery < Lustra::SQL::Query::Change < Lustra::SQL::Query::Connection < Lustra::SQL::Query::Pluck < Lustra::SQL::Query::Fetch < Lustra::SQL::Query::Execute < Lustra::SQL::Query::Lock < Lustra::SQL::Query::Window < Lustra::SQL::Query::CTE < Lustra::SQL::Query::Aggregate < Lustra::SQL::Query::OffsetLimit < Lustra::SQL::Query::GroupBy < Lustra::SQL::Query::OrderBy < Lustra::SQL::Query::Having < Lustra::SQL::Query::Where < Lustra::SQL::Query::Join < Lustra::SQL::Query::From < Lustra::SQL::Query::Select < Enumerable < Reference < Object

Addition of the method for eager loading and N+1 avoidance.

Instance methods

search(str)
with_author(fetch_columns = false, &block : Author::Collection -> ) : self
with_author(fetch_columns = false) : self
with_dependencies

Eager load the relation dependencies. Use it to avoid N+1 queries.

with_dependencies
with_dependents

Eager load the relation dependents. Use it to avoid N+1 queries.

with_dependents
with_tags

Eager load the relation tags. Use it to avoid N+1 queries.

with_tags