allow for ilike clauses
case-insensitive (sub)string matching
This commit is contained in:
parent
43e9431865
commit
800a0fa518
@ -375,6 +375,8 @@ class Table(object):
|
||||
key = list(value.keys())[0]
|
||||
if key in ('like',):
|
||||
clauses.append(self.table.c[column].like(value[key]))
|
||||
elif key in ('ilike',):
|
||||
clauses.append(self.table.c[column].ilike(value[key]))
|
||||
elif key in ('>', 'gt'):
|
||||
clauses.append(self.table.c[column] > value[key])
|
||||
elif key in ('<', 'lt'):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user