[Sqlalchemy-users] Summer of Code proposal: schema migration tool

2006-05-05 Thread Evan Rosson
Hey all, I'm a student applying for Google's Summer of Code; I'm interested in creating a tool to help manage database changes for SA projects. My proposal for this project borrows a lot from Rails' migrations. The proposal I've submitted is at http://evan.zealgame.com/soc Searching through the

[Sqlalchemy-users] 0.1.7 released

2006-05-05 Thread Michael Bayer
As Mr. Ellis so aptly reminded me that the post 0.1.6 bugfixes were piling up, I have recorded them in the changelog and released. While i am not seeing anything too exciting in this list, here they are: 0.1.7 - some fixes to topological sort algorithm - added DISTINCT ON support to Postgres

RE: [Sqlalchemy-users] session context proposal

2006-05-05 Thread Daniel Miller
That's a good point. Yes I agree, that solution is good (with the extra None param in getattr of course). I would also do an explicit check for None like this: def default_session(obj=None): default_session = getattr(obj, "__default_session__", None) if default_session is not None:

Re: [Sqlalchemy-users] mapper.select and limit=]

2006-05-05 Thread Sandro Dentella
On Thu, May 04, 2006 at 11:43:21AM -0400, Michael Bayer wrote: > I juts commited a tweak in 1387 to make this easier. your test > program can do: > > ret = m.select("city_name = 'Rome'", from_obj=[cities], limit=10) > > or more correctly: > ret = m.select("city.city_name = 'Rome' a