On Nov 2, 2005, at 2:59 PM, Tim Bunce wrote:
I've an assortments of changes to checkin prior to the next release,
but docs for Callbacks isn't part of them. Patches most welcome.
Okay.
I've been rather busy for a while[1] and that won't get much better
in the short term. Help would be appreciated.
Congratulations! What are you doing here???
http://www.justatheory.com/computers/databases/sqlite/
custom_perl_aggregates.html
How does that relate to callbacks, exactly?
Because the aggregates don't persist, I need to create them for every
database handle. Since I run persistent apps (with mod_perl), it's
best for me to do it the first time I connect to the database. Since
I use connect_cached(), It's hard to know when it actually connects
and when it reuses an existing handle. A connect_cached.new callback
would allow me to easily create whatever functions or aggregates I
need the first time it connects to the database and never again.
Except that the callback executes before the call to connect, so
there isn't yet a $dbh on which to call func(). So I'd need the
"'connect.cached.new' => [\&pre, \&post]" syntax so that I could do
it in &post.
Best,
David