2009/9/10 Wolodja Wentland <[email protected]>: > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
