its mentioned here, not particularly prominently:

http://docs.sqlalchemy.org/en/latest/orm/session.html#using-savepoint

however ideally all the docstrings would include examples, e.g. 
http://docs.sqlalchemy.org/en/latest/orm/session.html#sqlalchemy.orm.session.Session.begin_nested.



On Jan 13, 2014, at 6:53 PM, Jonathan Vanasco <[email protected]> wrote:

> i needed to do some savepoint work in sqlalchemy, and remembered mike 
> directed me to a FAQ or example with a contextmanager syntax:
> 
>     with session.begin_nested():
>          pass
> 
> i jumped on the sqlalchemy docs, and couldn't find that at all.
> 
> the orm docs ( http://docs.sqlalchemy.org/en/latest/orm/session.html ) make 
> vague reference "with session" statements, but there's nothing really 
> explicit about this.
> 
> i just wanted to note that it might be worth mentioning this in the docs
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sqlalchemy.
> For more options, visit https://groups.google.com/groups/opt_out.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to