allow for ilike clauses

case-insensitive (sub)string matching
This commit is contained in:
James Salsman 2019-10-14 00:03:01 -07:00 committed by GitHub
parent 43e9431865
commit 800a0fa518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'):