pygresql and primary key

Marcin Kadziolka marcin at linkor.com.pl
Thu Oct 10 14:44:55 CEST 2002


Gerhard Häring <gerhard.haering at opus-gmbh.net> napisał(a):

>> I'm using a pg module wrapper from pygresql.
> Ouch. I'd recommend you use a DB-API module like pyPgSQL or psycopg. PyGreSQL
> has a DB-API module called pgdb, too.

pg wrapper = pgdb which I use. I haven't written it clearly, sorry.

>> I cannot use a get() method for tables containing primary keys definied for
>> more than one field. It seems get() assumes primary key always consists of
>> exactly one field.
> Yes.

:(

>> How can I force it to use multiple column primary key?
> You can't without changing the source in pg.py. Why not just use SQL and a
> DB-API module?

get(), insert() and update() are nice :)
I thought there's a way to use it with more complex tables. If not I'll use
them for simple tables and SQL for anything else.

Thanks.

-- 
"Linkor" Systemy Informatyczne
  http://www.linkor.com.pl
  +48 32 2319231 wew. 353



More information about the Python-list mailing list