[Twisted-Python] Re: adbapi.ConnectionPool
dave at krondo.com
Mon Aug 16 01:53:50 EDT 2004
On Sun, 2004-08-15 at 19:29, Tsai Li Ming wrote:
> Dave Peticolas wrote:
> > No, it is not global. If you want all your modules
> > to use the same pool, you will have to arrange for
> > them to access the same ConnectionPool object (e.g.,
> > by putting that object in your top-level service).
> > dave
> > On Sun, 2004-08-15 at 08:45, Tsai Li Ming wrote:
> >>Is the connection pool global within reactor/twistd? In another words,
> >>if I import adbapi in various of my py files and uses it, will I be
> >>using a single global connection pool throughout my modules?
> About the start method in the API, what does it mean by "If you are
> using the reactor normally, this function does *not* need to be called."
When the reactor is created it registers its own start
method with the reactor so that when the reactor starts,
or if it is already running, the method will be called
automatically. Calling start by hand is generally only
for unit tests.
More information about the Twisted-Python