QMath class
Represents a mathematical expression or function in a SELECT clause.
This class allows embedding raw SQL mathematical expressions, aggregate functions, or any custom SQL expressions in the SELECT clause.
Example usage:
var count = QMath('COUNT(*)'); // COUNT(*)
var sum = QMath('SUM(price)'); // SUM(price)
var calc = QMath('price * quantity'); // price * quantity
- Inheritance
-
- Object
- SQL
- QSelectField
- QMath
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toSQL<
T extends SqlType> () → String -
Returns the raw mathematical expression as-is.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited