On Jul 1, 2008, at 10:38 PM, Ryan Ginstrom wrote:

>
> Thanks a lot for the information. I'm creating my session class like  
> so:
> SessionClass = scoped_session(sessionmaker(bind=engine,  
> autoflush=True,
> transactional=True))
>
> I'm closing out each "exposed" method call with a  
> "self.session.close()"
>
> If I start my method calls with "begin()" would I be able to create
> functions in the connection object, then use my session object to run
> queries?
>

as long as the session is in a transaction, and its bound to a single  
engine of some kind, saying session.connection() will give you the  
same connection each time, so yes.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to