Re: [Sqlalchemy-users] SQLAlchemy load problems

2006-02-17 Thread Michael Bayer
ok, the "get" on mapper will "get" the object that has been *loaded* from the database already, or if not will try to load it. creating your own objects in memory and setting the "primary key attribute" on them wont do anything...as far as SA is concerned, an unsaved object doesnt really h

[Sqlalchemy-users] SQLAlchemy load problems

2006-02-17 Thread Mohan K
Greetings,This is my first dab at SQLAlchemy, please bear with me if I am doing something wrong. Thelibrary looks awesome,BTW. Ok, I am trying to load a table via SQLAlchemy. The table basi-cally has two columns (postgres):   c1: varchar(64) primary key  c2: varchar(3)  My data file is a list of en