Module: OrientDB::SQL::ConditionsParametersMixin
Instance Method Summary collapse
- #and(*args) ⇒ Object
- #and_not(*args) ⇒ Object
- #or(*args) ⇒ Object
- #or_not(*args) ⇒ Object
- #where(*args) ⇒ Object
- #where!(*args) ⇒ Object
Instance Method Details
#and(*args) ⇒ Object
139 140 141 142 143 |
# File 'lib/orientdb/sql/common.rb', line 139 def and(*args) @conditions << ConditionExpression.new(:and) @conditions.last.add *args self end |
#and_not(*args) ⇒ Object
151 152 153 154 155 |
# File 'lib/orientdb/sql/common.rb', line 151 def and_not(*args) @conditions << ConditionExpression.new(:and_not) @conditions.last.add *args self end |
#or(*args) ⇒ Object
145 146 147 148 149 |
# File 'lib/orientdb/sql/common.rb', line 145 def or(*args) @conditions << ConditionExpression.new(:or) @conditions.last.add *args self end |
#or_not(*args) ⇒ Object
157 158 159 160 161 |
# File 'lib/orientdb/sql/common.rb', line 157 def or_not(*args) @conditions << ConditionExpression.new(:or_not) @conditions.last.add *args self end |
#where(*args) ⇒ Object
128 129 130 131 132 |
# File 'lib/orientdb/sql/common.rb', line 128 def where(*args) @conditions << ConditionExpression.new(:and) if @conditions.empty? @conditions.last.add *args self end |
#where!(*args) ⇒ Object
134 135 136 137 |
# File 'lib/orientdb/sql/common.rb', line 134 def where!(*args) @conditions = [] where *args end |