On 8/29/06, gabor <[EMAIL PROTECTED]> wrote: > > Robin Munn wrote: > > > > The notes on implementation that Adrian posted pretty much match what > > I'm thinking at this point. The plan is to make this 100% API > > compatible (if possible -- you never know what will turn up once you > > start implementing some idea), so that existing code doesn't need to > > change. But if you want access to the underlying SQLAlchemy objects to > > do something like a nine-table query involving five LEFT OUTER JOINs > > and two subselects, well, you should be able to do that as well. > > hi, > > this is great news... > > could you show some example code how would it work? > like.... > without sqlalchemy you would have to do this in raw sql, but with > django+sqlalchemy, you could do that.... > things like that?
Not yet -- I don't have anything yet. It's only been a few days since I even started thinking about it when Adrian contacted me. Once I have the ideas fleshed out a little bit, I'll be able to show some examples. > because i checked the sqlalchemy tutorial, and i see that it is a > powerful framework... i just don't currently see how it would interact > with django.... > > > please don't take this wrong, i very much welcome this django/sqlalchemy > integration... i'm just curious how exactly would it work... how will i > be able to go "deeper" (from django-level into sqlalchemy level) when > needed... Basically, your code won't change much, and you'll use the Django API as-is, except inheriting from django.contrib.sqlalchemy.db.models instead of django.db.models. Then when you need to get at the SQLAlchemy Table object, you'd do something like Story._sa_table.some_method(). At least that's the current plan. It may change as I implement this. > or ...well..maybe it's too early to ask questions like this :) > > thanks, > gabor It's never too early to ask questions. Sometimes it's too early to get detailed answers, though. :-) -- Robin Munn [EMAIL PROTECTED] GPG key 0xD6497014 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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/django-developers -~----------~----~----~----~------~----~------~--~---
