dbbase.column_types.WriteOnlyColumn.like

WriteOnlyColumn.like(other, escape=None)

Implement the like operator.

In a column context, produces the expression:

a LIKE other

E.g.:

stmt = select([sometable]).\
    where(sometable.c.column.like("%foobar%"))
Parameters
  • other – expression to be compared

  • escape

    optional escape character, renders the ESCAPE keyword, e.g.:

    somecolumn.like("foo/%bar", escape="/")
    

See also

ColumnOperators.ilike()