module ROM::SQL::Postgres::Types::RangeOperators
Public Instance Methods
adjacent_to(_type, expr, value)
click to toggle source
# File lib/rom/sql/extensions/postgres/types/range.rb, line 142 def adjacent_to(_type, expr, value) Attribute[SQL::Types::Bool].meta( sql_expr: Sequel.pg_range(expr).adjacent_to(value) ) end
contain(_type, expr, value)
click to toggle source
# File lib/rom/sql/extensions/postgres/types/range.rb, line 100 def contain(_type, expr, value) Attribute[SQL::Types::Bool].meta( sql_expr: Sequel.pg_range(expr).contains(value) ) end
contained_by(_type, expr, value)
click to toggle source
# File lib/rom/sql/extensions/postgres/types/range.rb, line 106 def contained_by(_type, expr, value) Attribute[SQL::Types::Bool].meta( sql_expr: Sequel.pg_range(expr).contained_by(value) ) end
ends_before(_type, expr, value)
click to toggle source
# File lib/rom/sql/extensions/postgres/types/range.rb, line 136 def ends_before(_type, expr, value) Attribute[SQL::Types::Bool].meta( sql_expr: Sequel.pg_range(expr).ends_before(value) ) end
left_of(_type, expr, value)
click to toggle source
# File lib/rom/sql/extensions/postgres/types/range.rb, line 118 def left_of(_type, expr, value) Attribute[SQL::Types::Bool].meta( sql_expr: Sequel.pg_range(expr).left_of(value) ) end
overlap(_type, expr, value)
click to toggle source
# File lib/rom/sql/extensions/postgres/types/range.rb, line 112 def overlap(_type, expr, value) Attribute[SQL::Types::Bool].meta( sql_expr: Sequel.pg_range(expr).overlaps(value) ) end
right_of(_type, expr, value)
click to toggle source
# File lib/rom/sql/extensions/postgres/types/range.rb, line 124 def right_of(_type, expr, value) Attribute[SQL::Types::Bool].meta( sql_expr: Sequel.pg_range(expr).right_of(value) ) end
starts_after(_type, expr, value)
click to toggle source
# File lib/rom/sql/extensions/postgres/types/range.rb, line 130 def starts_after(_type, expr, value) Attribute[SQL::Types::Bool].meta( sql_expr: Sequel.pg_range(expr).starts_after(value) ) end