Module: SQL::Composer::Nodes::Operators
- Included in:
- Identifier, Literal
- Defined in:
- lib/sql/composer/nodes/operators.rb
Instance Method Summary collapse
Instance Method Details
#==(other) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/sql/composer/nodes/operators.rb', line 10 def ==(other) value = Nodes::Value.new(input: other, backend: backend) operation = Operations::Eql.new(left: self, right: value) if other.start_with?("%") && other.end_with?("%") tokens.add(other, value) end operation end |
#asc ⇒ Object
22 23 24 |
# File 'lib/sql/composer/nodes/operators.rb', line 22 def asc Operations::Asc.new(self) end |
#desc ⇒ Object
26 27 28 |
# File 'lib/sql/composer/nodes/operators.rb', line 26 def desc Operations::Desc.new(self) end |