@lancedb/lancedb • Docs
@lancedb/lancedb / Expr
Class: Expr¶
A SQL expression backed by the shared LanceDB expression builder.
Example¶
Constructors¶
new Expr()¶
Parameters¶
- inner:
Expr
Returns¶
Properties¶
inner¶
Methods¶
add()¶
Add a value.
Parameters¶
- other:
ExprLike
Returns¶
and()¶
Combine two predicates with AND.
Parameters¶
- other:
Expr
Returns¶
cast()¶
Cast to an Arrow data type, such as "Int64".
Parameters¶
- dataType:
string
Returns¶
contains()¶
Test whether a string contains a substring.
Parameters¶
- substr:
ExprLike
Returns¶
div()¶
Divide by a value.
Parameters¶
- other:
ExprLike
Returns¶
eq()¶
Compare for equality.
Parameters¶
- other:
ExprLike
Returns¶
gt()¶
Compare for greater than.
Parameters¶
- other:
ExprLike
Returns¶
gte()¶
Compare for greater than or equal to.
Parameters¶
- other:
ExprLike
Returns¶
isIn()¶
Test membership in a list of values.
Parameters¶
- values:
ExprLike[]
Returns¶
lower()¶
Convert a string to lowercase.
Returns¶
lt()¶
Compare for less than.
Parameters¶
- other:
ExprLike
Returns¶
lte()¶
Compare for less than or equal to.
Parameters¶
- other:
ExprLike
Returns¶
mul()¶
Multiply by a value.
Parameters¶
- other:
ExprLike
Returns¶
ne()¶
Compare for inequality.
Parameters¶
- other:
ExprLike
Returns¶
not()¶
Negate this predicate.
Returns¶
or()¶
Combine two predicates with OR.
Parameters¶
- other:
Expr
Returns¶
sub()¶
Subtract a value.
Parameters¶
- other:
ExprLike
Returns¶
toSql()¶
Serialize with the LanceDB SQL dialect, preserving column case.
Returns¶
string
upper()¶
Convert a string to uppercase.