Re: [sqlalchemy] Relationship - session.commit() is not needed?

2013-04-27 Thread Michael Bayer
if the database you're using supports transactions (meaning, not MySQL + MyISAM engine), and you're not using autocommit (which is usually the case), then you always need to commit() for anything to be committed.moving relationships around has no special significance. On Apr 26, 2013, at

[sqlalchemy] Relationship - session.commit() is not needed?

2013-04-26 Thread Mauricio de Abreu Antunes
Everytime I code SQLAlchemy relationships I note that insert operation like this (tutorial) does not need commit() http://docs.sqlalchemy.org/en/latest/orm/tutorial.html#working-with-related-objects When using this bidirectional relationship() is the data automatically commited to the dabase?