data Rotor::ModelOps[T](as_model: shareable (T) -> Rotor::Model, attach: shareable (T, Hash[Symbol, Array[Rotor::Model]]) -> T)
What a query of models does with them for a preload
(Rotor::Query#preload): a row as a model, and a row with the
associations preloaded for it.
/home/runner/work/rotor/rotor/src/query.qz:23
Methods
def to_h -> Hash[Symbol, Object]
The fields as a Hash, by name.
def with(*, as_model: shareable (T) -> Rotor::Model = …, attach: shareable (T, Hash[Symbol, Array[Rotor::Model]]) -> T = …) -> Rotor::ModelOps[T]
A copy with the fields given replaced.