2009/9/10 Wolodja Wentland <wentl...@cl.uni-heidelberg.de>: > Class Bar(object): > > def all_foo(self): > foo_query.all() > > def foo_startwith(self, search_string): > foo.query.filter(tbl.c.col.like('%s%%'% ...))
Note that a .startswith() method is already implemented in SA: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/schema.html?highlight=startswith#sqlalchemy.schema.Column.startswith --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---