> Once the maintenance stuff is out of the way, I'd like to add this
> flourish of syntactic sugar:
>
> $s = new CGI::Session( "driver:mysql", undef , { Handle => $dbh } );
>
> Can be rewritten as:
>
> $s = new CGI::Session($dbh);
That's a good idea - especially, since this would make it very easy to
use a Class::DBI class as the source of the driver:
$s = new CGI::Session(My::CDBI::Users->db_Main);
> Maybe it's not too late to have CGI::Session 4.x driver name mirror exactly
> the DBD ones. So the 'postgresql' driver becomes 'Pg'.
I think that would be a very good idea. It is a pain to keep in mind a
bunch of exceptions when converting from the DBD driver name to the
db driver for another module.
Database drivers for the following projects (and probably others) name
their drivers after the DBD driver:
Class::DBI::Loader
Class::DBI::Factory
Tangram
SPOPS
But (on the other hand) the following projects don't:
Apache::Session
Alzabo
Anyway, 4.0x is still flagged as a development release so I would guess
that it's fair game if the author agrees.
Michael
--
Michael Graham <suppressed>
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.