MCPcopy Create free account
hub / github.com/ActiveState/code / Like

Class Like

recipes/Python/415345_write_sql_via_python/recipe-415345.py:341–348  ·  view source on GitHub ↗

Like >>> print Like(custom('ITEM_NAME'), 'Staron%') ITEM_NAME like 'Staron%'

Source from the content-addressed store, hash-verified

339 right = property(lambda self: self.elements[1])
340
341class Like(InfixedComparisonExpression):
342 """Like
343
344 >>> print Like(custom('ITEM_NAME'), 'Staron%')
345 ITEM_NAME like 'Staron%'
346 """
347 def __init__(self, value, pattern):
348 super(Like, self).__init__('like', value, pattern)
349
350class LessThan(InfixedComparisonExpression):
351 """LessThan

Callers 2

likeMethod · 0.70
CheckAttribFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected