class Task::Collection

Overview

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

Defined in:

bitte_ci/model.cr

Instance Method Summary

Instance Method Detail

def with_job_group(fetch_columns = false, &block : JobGroup::Collection -> ) : self #

def with_job_group(fetch_columns = false) : self #

def with_stderr(fetch_columns = false, &block : LogLine::Collection -> ) : self #

Eager load the has many relation stderr. Use it to avoid N+1 queries.


def with_stderr(fetch_columns = false) #

def with_stdout(fetch_columns = false, &block : LogLine::Collection -> ) : self #

Eager load the has many relation stdout. Use it to avoid N+1 queries.


def with_stdout(fetch_columns = false) #