Funicular::Relation class of PicoRuby
Singleton methods
new
Funicular::Relation.new(untyped model, ?Array[String] where_sql,
?Array[untyped] where_binds, ?Array[String] order_sql,
?Integer? limit, ?Integer? offset) -> void
Instance methods
__event_source
instance.__event_source() -> [Symbol, String]
count
instance.count() -> Integer
delete_all
instance.delete_all() -> Integer
each
instance.each() { (untyped record) -> void } -> Array[untyped]
exists?
instance.exists?() -> bool
find
instance.find(untyped id) -> untyped
find_by
instance.find_by(Hash[untyped, untyped] conditions) -> untyped
first
instance.first() -> untyped
limit
instance.limit(Integer? n) -> Relation
offset
instance.offset(Integer? n) -> Relation
order
instance.order(*untyped args) -> Relation
to_a
instance.to_a() -> Array[untyped]
to_sql
instance.to_sql() -> String
where
instance.where(?Hash[untyped, untyped] | String | nil conditions, *untyped binds) -> Relation