dbbase.column_types.WriteOnlyColumn.ilike¶
-
WriteOnlyColumn.
ilike
(other, escape=None)¶ Implement the
ilike
operator, e.g. case insensitive LIKE.In a column context, produces an expression either of the form:
lower(a) LIKE lower(other)
Or on backends that support the ILIKE operator:
a ILIKE other
E.g.:
stmt = select([sometable]).\ where(sometable.c.column.ilike("%foobar%"))
- Parameters
other – expression to be compared
escape –
optional escape character, renders the
ESCAPE
keyword, e.g.:somecolumn.ilike("foo/%bar", escape="/")
See also
ColumnOperators.like()