Re: Class::DBI::Loader patched to support generic base classes
[prev]
[thread]
[next]
[Date index for 2004/07/14]
Hi Sebastian,
I'd be interested in the patch. I'm developing an application that uses CDBI::Loader
and would like to offer the user/programmer the flexibility of using their own Class::DBI
subclass. I also wanted to patch CDBI::Loader to give the flexibility of defining just individual
tables. I sent an email two weeks ago about wanting to patch CDBI::Loader but got minimal response
from the list and none from the author. Let me know if you're able to contact him.
Good day,
Gabriel
On Wed, Jul 14, 2004 at 12:19:35AM +0200, Sebastian Willert wrote:
> Hi all,
>
> I've patched Class::DBI::Loader and friends to support generic base
> classes for the classes generated from the table definitions.
>
> Alls you have to do is to give an additional argument to
> Class::DBI::Loader->new (see [1]), which then checks if the proposed
> base class is a descendant of Class::DBI::$driver and then makes it a
> superclass of all generated classes instead.
>
> If someone is interested, I can polish the patch for release and ask the
> original author to include it in further distributions.
>
> Regards,
> Sebastian
>
> ---
>
> [1]
> my $loader = Exparse::Class::Loader->new(
> dsn => "dbi:mysql:dbname",
> user => "root",
> password => "",
> namespace => "Data",
> baseclass => qw(MyClass::DBI)
> );
>
--
my looovely website -- http://www.chwhat.com
BTW, IF chwhat.com goes down email me at gabriel.horner@xxxx.xx
|
|
Re: Class::DBI::Loader patched to support generic base classes
Gabriel Horner 11:07 on 14 Jul 2004
|