Module: Influxdb::Arel::Extensions::Predications

Included in:
Nodes::Attribute, Nodes::Grouping, Nodes::InfixOperation, Nodes::SqlLiteral
Defined in:
lib/influxdb/arel/extensions/predications.rb

Instance Method Summary collapse

Instance Method Details

#does_not_match(other) ⇒ Object



50
51
52
# File 'lib/influxdb/arel/extensions/predications.rb', line 50

def does_not_match(other)
  Nodes::DoesNotMatch.new(self, other)
end

#does_not_match_all(others) ⇒ Object



58
59
60
# File 'lib/influxdb/arel/extensions/predications.rb', line 58

def does_not_match_all(others)
  grouping_all(:does_not_match, others)
end

#does_not_match_any(others) ⇒ Object



54
55
56
# File 'lib/influxdb/arel/extensions/predications.rb', line 54

def does_not_match_any(others)
  grouping_any(:does_not_match, others)
end

#eq(other) ⇒ Object



17
18
19
# File 'lib/influxdb/arel/extensions/predications.rb', line 17

def eq(other)
  Nodes::Equality.new(self, other)
end

#eq_all(others) ⇒ Object



25
26
27
# File 'lib/influxdb/arel/extensions/predications.rb', line 25

def eq_all(others)
  grouping_all(:eq, others)
end

#eq_any(others) ⇒ Object



21
22
23
# File 'lib/influxdb/arel/extensions/predications.rb', line 21

def eq_any(others)
  grouping_any(:eq, others)
end

#gt(right) ⇒ Object



74
75
76
# File 'lib/influxdb/arel/extensions/predications.rb', line 74

def gt(right)
  Nodes::GreaterThan.new(self, right)
end

#gt_all(others) ⇒ Object



82
83
84
# File 'lib/influxdb/arel/extensions/predications.rb', line 82

def gt_all(others)
  grouping_all(:gt, others)
end

#gt_any(others) ⇒ Object



78
79
80
# File 'lib/influxdb/arel/extensions/predications.rb', line 78

def gt_any(others)
  grouping_any(:gt, others)
end

#gteq(right) ⇒ Object



62
63
64
# File 'lib/influxdb/arel/extensions/predications.rb', line 62

def gteq(right)
  Nodes::GreaterThanOrEqual.new(self, right)
end

#gteq_all(others) ⇒ Object



70
71
72
# File 'lib/influxdb/arel/extensions/predications.rb', line 70

def gteq_all(others)
  grouping_all(:gteq, others)
end

#gteq_any(others) ⇒ Object



66
67
68
# File 'lib/influxdb/arel/extensions/predications.rb', line 66

def gteq_any(others)
  grouping_any(:gteq, others)
end

#in(other) ⇒ Object



29
30
31
32
33
34
35
36
# File 'lib/influxdb/arel/extensions/predications.rb', line 29

def in(other)
  case other
  when Range
    in_range(other)
  else
    Nodes::In.new(self, other)
  end
end

#lt(right) ⇒ Object



86
87
88
# File 'lib/influxdb/arel/extensions/predications.rb', line 86

def lt(right)
  Nodes::LessThan.new(self, right)
end

#lt_all(others) ⇒ Object



94
95
96
# File 'lib/influxdb/arel/extensions/predications.rb', line 94

def lt_all(others)
  grouping_all(:lt, others)
end

#lt_any(others) ⇒ Object



90
91
92
# File 'lib/influxdb/arel/extensions/predications.rb', line 90

def lt_any(others)
  grouping_any(:lt, others)
end

#lteq(right) ⇒ Object



98
99
100
# File 'lib/influxdb/arel/extensions/predications.rb', line 98

def lteq(right)
  Nodes::LessThanOrEqual.new(self, right)
end

#lteq_all(others) ⇒ Object



106
107
108
# File 'lib/influxdb/arel/extensions/predications.rb', line 106

def lteq_all(others)
  grouping_all(:lteq, others)
end

#lteq_any(others) ⇒ Object



102
103
104
# File 'lib/influxdb/arel/extensions/predications.rb', line 102

def lteq_any(others)
  grouping_any(:lteq, others)
end

#matches(other) ⇒ Object



38
39
40
# File 'lib/influxdb/arel/extensions/predications.rb', line 38

def matches(other)
  Nodes::Matches.new(self, other)
end

#matches_all(others) ⇒ Object



46
47
48
# File 'lib/influxdb/arel/extensions/predications.rb', line 46

def matches_all(others)
  grouping_all(:matches, others)
end

#matches_any(others) ⇒ Object



42
43
44
# File 'lib/influxdb/arel/extensions/predications.rb', line 42

def matches_any(others)
  grouping_any(:matches, others)
end

#not_eq(other) ⇒ Object



5
6
7
# File 'lib/influxdb/arel/extensions/predications.rb', line 5

def not_eq(other)
  Nodes::NotEqual.new(self, other)
end

#not_eq_all(others) ⇒ Object



13
14
15
# File 'lib/influxdb/arel/extensions/predications.rb', line 13

def not_eq_all(others)
  grouping_all(:not_eq, others)
end

#not_eq_any(others) ⇒ Object



9
10
11
# File 'lib/influxdb/arel/extensions/predications.rb', line 9

def not_eq_any(others)
  grouping_any(:not_eq, others)
end