Re: [sqlalchemy] Reflection overhead

2011-06-18 Thread Tomasz Jezierski - Tefnet
one specifically designed for the application. How about: http://code.google.com/p/sqlautocode/ ? Regards, Tomasz Jezierski Tefnet -- 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

[sqlalchemy] Re: Flushing all sessions

2009-10-07 Thread Tomasz Jezierski - Tefnet
they are? Maybe try/finally will be enough for you? Something like --program/thread begin-- try: createsession somestuff finally: session.flush() --program/thread end-- --- Tomasz Jezierski Tefnet www.tefnet.pl --~--~-~--~~~---~--~~ You

[sqlalchemy] Re: how to get duplicated Key Error?

2009-10-03 Thread Tomasz Jezierski - Tefnet
Dnia 2009-10-02, Pt o godzinie 21:22 -0700, 李白,字一日 pisze: any code snippets? thanks. How to handle unique constraint exception? http://www.sqlalchemy.org/trac/wiki/UsageRecipes/UniqueConstraintExceptionHandling --- Tomasz Jezierski Tefnet www.tefnet.pl

[sqlalchemy] Re: Remove need for session in method?

2009-09-26 Thread Tomasz Jezierski - Tefnet
/UsageRecipes/SessionAwareMapper --- Tomasz Jezierski Tefnet --~--~-~--~~~---~--~~ 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

[sqlalchemy] Re: @propert

2009-09-11 Thread Tomasz Jezierski - Tefnet
-descriptors but if you want to build SQL query for property not reflected in database schema.. then it will be hard to do :) Tomasz Jezierski Tefnet http://www.tefnet.pl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[sqlalchemy] Re: Problem with defining relations between inherited classes

2009-08-29 Thread Tomasz Jezierski - Tefnet
Dnia 2009-08-28, Pt o godzinie 18:29 -0400, Michael Bayer pisze: Tomasz Jezierski - Tefnet wrote: --- sqlalchemy.exc.ArgumentError: Column 'PhysObject.locationId' is not represented in mapper's table. Use the `column_property()` function to force this column to be mapped as a read-only

[sqlalchemy] Re: Problem with defining relations between inherited classes

2009-08-28 Thread Tomasz Jezierski - Tefnet
=128, convert_unicode=False, assert_unicode=None), table=TefObject, nullable=False)}} --- Is that a correct behavior (not updating mapped_table after adding new column to compiled mapper)? Tomasz Jezierski Tefnet --~--~-~--~~~---~--~~ You received this message

[sqlalchemy] Re: Unable to define a self-referential table in declarative style

2009-08-24 Thread Tomasz Jezierski - Tefnet
Dnia 2009-08-24, Pn o godzinie 12:35 -0700, Kees van den Broek pisze: Hi, This is a table setup in declarative style: class Category(DeclarativeBase): __tablename__ = 'category' category_id = Column(Integer, autoincrement=True, primary_key=True) name = Column(Unicode(255),

[sqlalchemy] Re: Attribute inheritance problem - IRC comment

2009-07-30 Thread Tomasz Jezierski - Tefnet
): --- shouldn't _mapper_registry be an ordered dict or something? Tomasz Jezierski Tefnet --~--~-~--~~~---~--~~ 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

[sqlalchemy] Re: Attribute inheritance problem - IRC comment

2009-07-30 Thread Tomasz Jezierski - Tefnet
of hierarchy, which shouldn't cause this issue. e.g. D - B - A E - C - A F - A would yield (A), (B, C, F), (D, E) I've made a ticket with test case and patch http://www.sqlalchemy.org/trac/ticket/1488 Tomasz Jezierski Tefnet