[Twisted-Python] Re: adbapi.ConnectionPool
Dave Peticolas
dave at krondo.com
Sun Aug 15 23:53:50 MDT 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?
> >>
> >>Liming
> >>
> 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.
dave
More information about the Twisted-Python
mailing list