plus
Represents the SQL + (addition) operator between two columns.
This operator function allows you to perform addition on two KQLiteColumn instances, which translates to column1 + column2 in the generated SQL. This is commonly used for numeric calculations within a SELECT statement.
Example
// SELECT (Products.price + Products.tax) AS total_price FROM Products
Products.select(
(Products.price + Products.tax) AS "total_price"
)Return
A new KQLiteColumn representing the result of the addition expression.
Author
MOHAMMAD AZIM ANSARI
Parameters
The right-hand side KQLiteColumn of the addition.
See also
Represents the SQL + (addition) operator between a column and a literal value.
This operator function allows you to add a literal value to a KQLiteColumn, which translates to column + value in the generated SQL. This is useful for performing calculations, such as adding a constant fee or bonus.
Example
// SELECT (Employees.salary + 500) AS "new_salary" FROM Employees
Employees.select(
(Employees.salary + 500) AS "new_salary"
)Return
A new KQLiteColumn representing the result of the addition expression.
Author
MOHAMMAD AZIM ANSARI
Parameters
The literal value to add to the column.