diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2005-07-21 04:48:16 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2005-07-21 04:48:16 +0000 |
commit | 660994d303075b8d55d61598f0c557ef0195e1d2 (patch) | |
tree | 520e3e3ac0892c15cdf5a5c83f7697dde4aff937 /lib/sqlalchemy/sql.py | |
parent | a72c50f27b9fd06829033532c189f9cbfffdc453 (diff) | |
download | sqlalchemy-660994d303075b8d55d61598f0c557ef0195e1d2.tar.gz |
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r-- | lib/sqlalchemy/sql.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py index 92fd76123..10abbd46a 100644 --- a/lib/sqlalchemy/sql.py +++ b/lib/sqlalchemy/sql.py @@ -379,6 +379,15 @@ class ColumnSelectable(Selectable): def __ge__(self, other): return self._compare('>=', other) + def like(self, other): + return self._compare('LIKE', other) + + def startswith(self, other): + return self._compare('LIKE', str(other) + "%") + + def endswith(self, other): + return self._compare('LIKE', "%" + str(other)) + class TableImpl(Selectable): """attached to a schema.Table to provide it with a Selectable interface as well as other functions |