gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] gmDbObject


From: Horst Herb
Subject: [Gnumed-devel] gmDbObject
Date: Mon, 16 Sep 2002 09:41:17 +1000
User-agent: KMail/1.4.6

I have added a generic base class for database objects ("gmDbObject.py" in 
"gnumed/client/python-common/"). 

The "person" and "drug" objects will depend on this heavily, and I would 
encourage everybody to use it too since it will allow to hide a few database 
adapter implementation specific details, and it can make it a lot easier to 
connect user interface elements to the backend database once we have derived 
a few handy classes from it.

I have also added the "fetch returns list" option into gmPG.py
This is a modification specific to the pyPgSQL adapter, since it usually would 
return a list of PgResultSet objects by default which can be expensive 
performancewise.

If you expect more than a 100 rows to be returned from a query, it might be 
wise to switch this feature temporarily off and use a simple list  of lists 
instead.

Horst




reply via email to

[Prev in Thread] Current Thread [Next in Thread]