data Rotor::Source(table: Rotor::TableInfo, model: Type[Object], on: Array[Rotor::Sql], fetch: Array[Rotor::Column]?, keep: Array[Symbol])

A table a query reads: the first, or one joined to it, with the conditions of its JOIN (INNER JOIN ... ON them, CROSS JOIN for none), the columns it fetches (nil for all of them), and those it fetches whatever a select reads (the key an association's join needs).

/home/runner/work/rotor/rotor/src/query.qz:10

Methods

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

/home/runner/work/rotor/rotor/src/query.qz:10

def with(*, table: Rotor::TableInfo = …, model: Type[Object] = …, on: Array[Rotor::Sql] = …, fetch: Array[Rotor::Column]? = …, keep: Array[Symbol] = …) -> Rotor::Source

A copy with the fields given replaced.

/home/runner/work/rotor/rotor/src/query.qz:10

def table -> Rotor::TableInfo

/home/runner/work/rotor/rotor/src/query.qz:10

def model -> Type[Object]

/home/runner/work/rotor/rotor/src/query.qz:10

def on -> Array[Rotor::Sql]

/home/runner/work/rotor/rotor/src/query.qz:10

def fetch -> Array[Rotor::Column]?

/home/runner/work/rotor/rotor/src/query.qz:10

def keep -> Array[Symbol]

/home/runner/work/rotor/rotor/src/query.qz:10