[sqlalchemy] Re: Implementing placeholders / get_or_insert / get_or_create over SA

2010-04-30 Thread moranski
Okay, after using synonym combinations like get_or_create, find_or_create to search this list it seems that searching for find_or_create yields the most useful answers. P.S. Added for future searches. -- You received this message because you are subscribed to the Google Groups sqlalchemy

[sqlalchemy] Implementing placeholders/get_or_insert over SA

2010-04-28 Thread moranski
I have code which generates mapped classes, some of which are actually already existing in the database ( I the sense that there is a corresponding row ). Example: given the declarative class class Frob(Base): __tablename__ = frobs id = Column(Integer, primary_key = True ) name =