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.
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.