Re: [sqlalchemy] Am I doing it wrong?

2013-11-06 Thread Simon King
On Wed, Nov 6, 2013 at 3:28 AM, bsa bruc...@gmail.com wrote: After resisting ORM and database abstraction packages for a long time in favour of plain sqlite3, I decided to give SQLAlchemy's ORM features a try. I've managed to specify a schema and get objects in and out of tables. I'm not sure

Re: [sqlalchemy] Am I doing it wrong?

2013-11-06 Thread bsa
Simon, Thanks for taking the time to read through and respond. 2) Do I need to be doing the manual flush() + get ID fiddling to create the linkage between objects? Or is there a better way to do this, eg by linking the objects together in code and making a single session call at the

[sqlalchemy] Am I doing it wrong?

2013-11-05 Thread bsa
After resisting ORM and database abstraction packages for a long time in favour of plain sqlite3, I decided to give SQLAlchemy's ORM features a try. I've managed to specify a schema and get objects in and out of tables. I'm not sure if I'm doing it right though. I feel like I have a fairly