This library does not have many expressions/functions/operators from MySQL built-in.
However, you can create your own custom expressions
Asterisks (*) denote expressions not natively from MySQL.
-
Aggregate
-
Cast
-
castAsDouble(bigint)*
MySQL 5.7 does not have
CAST(x AS DOUBLE)
. However,(x + 0e0)
has the same effect.
-
Comparison
-
nullSafeNotEq(expr, expr)
*Internally,
NOT (a <=> b)
-
Control-flow
-
Date-time
-
Information
-
Math
-
String
ascii(string)
bin(bigint|number
bitLength(string)
char(number, ...)
charLength(string)
concat(string, ...)
concatWs(string, string|null, ...)
elt(number, string, ...)
exportSet(number, string, string)
field(string, string, ...)
findInSet(string, string)
format(number, number)
fromBase64(string)
hex(bigint|number|string)
-
Subquery
-
Arithmetic
-
addAsDecimal({ maxDigitCount, fractionalDigitCount }, number, ...)
*Like
add(number, ...)
but casts toDECIMAL
, performs addition, then casts toDOUBLE
-
Logical
-
isNotNullAnd(expr, (expr) => boolean)
*Equivalent to
(expr IS NOT NULL) AND (boolean)
.This function narrows the type of
expr
fromT|null
toT
.