Is there a reason why the various ::Setup and ::Store classes don't take an active database handle in addition to taking a set of connection parameters? I'm working on embedding CGI::Wiki into OpenInteract2 and it would be mighty convenient to pass already-open database handles around to the various wiki components.
I'm happy to submit patches if people think it's worthwhile.
Thanks,
Chris
-- Chris Winters Creating enterprise-capable snack systems since 1988
On Wed 02 Jun 2004, Chris Winters chris@cwinters.com wrote:
Is there a reason why the various ::Setup and ::Store classes don't take an active database handle in addition to taking a set of connection parameters?
I don't think so, no. As far as I remember - having not checked - all access is via the database handle.
I'm happy to submit patches if people think it's worthwhile.
Go for it! If it goes wrong for someone I'm sure they'll send a failing test, right? :)
And I'll find it useful for interfacing a wiki with the bulletin board I wrote today.
Kake
On Jun 2, 2004, at 10:26 PM, Kate L Pugh wrote:
Go for it! If it goes wrong for someone I'm sure they'll send a failing test, right? :)
And I'll find it useful for interfacing a wiki with the bulletin board I wrote today.
Here you go. This does ::Store::Database and all the ::Setup classes except ::SII.
Chris
-- Chris Winters Creating enterprise-capable snack systems since 1988
On Wed 02 Jun 2004, Chris Winters chris@cwinters.com wrote:
Here you go. This does ::Store::Database and all the ::Setup classes except ::SII.
I didn't apply your patch directly because there were a few other issues that needed making sure of (and you didn't send any tests) but
http://the.earth.li/~kake/code/CGI-Wiki-0.51_02.tar.gz
should do the trick.
Can everyone test it please?
Kake