module Arel
module Nodes
class Contained < Arel::Nodes::Binary - Arel::Nodes::Contained has no descriptive comment
def operator
"<@"
end
end
class Contains < Arel::Nodes::Binary - Arel::Nodes::Contains has no descriptive comment
def operator
"@>"
end
end
class Overlaps < Arel::Nodes::Binary - Arel::Nodes::Overlaps has no descriptive comment
def operator
"&&"
end
end
end
module Predications - Arel::Predications has no descriptive comment
def contained(other)
Nodes::Contained.new(self, quoted_node(other))
end
def contains(other)
Nodes::Contains.new(self, quoted_node(other))
end
def overlaps(other)
Nodes::Overlaps.new(self, quoted_node(other))
end
end
module Visitors
class PostgreSQL < Arel::Visitors::ToSql - Arel::Visitors::PostgreSQL has no descriptive comment
private
def visit_Arel_Nodes_Contained(o, collector) -
- Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Contained has the name 'visit_Arel_Nodes_Contained'
- Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Contained has the parameter name 'o'
infix_value(o, collector, " <@ ")
end
def visit_Arel_Nodes_Contains(o, collector) -
- Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Contains has the name 'visit_Arel_Nodes_Contains'
- Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Contains has the parameter name 'o'
infix_value(o, collector, " @> ")
end
def visit_Arel_Nodes_Overlaps(o, collector) -
- Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Overlaps has the name 'visit_Arel_Nodes_Overlaps'
- Arel::Visitors::PostgreSQL#visit_Arel_Nodes_Overlaps has the parameter name 'o'
infix_value(o, collector, " && ")
end
end
end
end