]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
(no commit message)
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Jul 2005 04:48:16 +0000 (04:48 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 21 Jul 2005 04:48:16 +0000 (04:48 +0000)
lib/sqlalchemy/sql.py

index 92fd76123931c97fa212ae660aebcb00df34102c..10abbd46aac781ecbe21da8643ead023e185c29d 100644 (file)
@@ -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