[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] gmPG2
From: |
Karsten Hilbert |
Subject: |
Re: [Gnumed-devel] gmPG2 |
Date: |
Tue, 6 Feb 2007 13:06:31 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Tue, Feb 06, 2007 at 06:22:05AM +0800, Syan Tan wrote:
> what I remember of tomcat , web frameworks tend to
> pool database connection objects , and you can get a remote
> proxy to a connection object through use of
> a Directory Service , like ldap;
> is there a way of setting the business of pycommon gmPG2
> with an external acquired dbapi compliant connection, before using the
> business objects ?
gmPG2 does not care how you acquire the auth tokens, for one
thing. It can also use any DB-API compliant connection
anywhere the <link_obj> parameter is supported in gmPG2.
There currently is no built-in support for injecting
established connections into gmPG2 for later transparent
re-use.
This would be possible by making gmPG2 have a pool of
connections and adding an inject_connection() method. Again,
I'd be happy to see suggestions as to how to add pooling
capabilities to gmPG2.
> (does the business objects depend on psycopg2 special
> api ?
Sort of, yes, in that they all call
gmPG2.run_ro/rw_queries() with link_obj=None.
> I'm supposing psycopg2 doesn't allow for remote referenced connection
> objects , or does it ?)
No.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346