like
relationalai.semantics.std.strings
like(s: StringValue, pattern: StringValue) -> ExpressionCheck whether s matches the SQL LIKE pattern pattern.
Parameters
(sStringValue) - The string to match against.
(patternStringValue) - The SQL LIKE pattern (%for wildcard,_for single character).
Returns
Expression- AnExpressionthat evaluates totrueifsmatches the pattern.
Examples
Match strings using SQL LIKE patterns:
select(Brand.name).where(strings.like(Brand.name, r"Mc%"))select(Brand.name).where(strings.like(Brand.name, r"%est%"))