Module: Sequel::SQL::NumericMethods

Included in:
LiteralString, GenericComplexExpression, GenericExpression, NumericExpression, Symbol
Defined in:
lib/sequel/sql.rb

Overview

This module includes the standard mathematical methods (+, -, *, and /) that are defined on objects that can be used in a numeric context in SQL (Symbol, LiteralString, and SQL::GenericExpression).

:a + :b # "a" + "b"
:a - :b # "a" - "b"
:a * :b # "a" * "b"
:a / :b # "a" / "b"