On Tue, Jul 22, 2008 at 07:25:38AM -0400, inhahe wrote:
> What if I want to modify the backend to SQLObject in some way?
> I want its requests to call my own custom function(s) that ultimately
> use the DBS.
>
> Basically I'm using stackless and I want my custom function to put the
> request in a queue that goes to a thread pool of database connections
> to MySQL and when a result is ready sends it back to the function on a
> channel so that the function can return the result.
>
> Can this be done?
I am afraid you have to patch mysqlconnection backend pretty
extensively. Start looking at sqlobject/dbconnection.py, then
sqlobject/mysql/mysqlconnection.py.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd@...
Programmers don't die, they just GOSUB without RETURN.
|