Re: Choosing Class::DBI::(mysql|SQLite|*) classes at runtime

[prev] [thread] [next] [Date index for 2004/07/07]

From: Stuart Johnston
Subject: Re: Choosing Class::DBI::(mysql|SQLite|*) classes at runtime
Date: 15:48 on 07 Jul 2004
Sebastian Willert wrote:
> Hi all,
> 
> I've been using Class::DBI::mysql->set_up_table all over the code for
> one of my modules which worked excellent until I started to write unit
> tests for this module. For obvious reasons I don't want to access a
> mysql server and don't want to change the code of the modules to use
> Class::DBI::SQLite instead. I searched a bit but didn't find any
> suggestion how to provide dynamic base-class choosing. 

Did you look at Class::DBI::BaseDSN? 
http://search.cpan.org/~rclamp/Class-DBI-BaseDSN-1.22/lib/Class/DBI/BaseDSN.pm

Choosing Class::DBI::(mysql|SQLite|*) classes at runtime
Sebastian Willert 15:18 on 07 Jul 2004

Re: Choosing Class::DBI::(mysql|SQLite|*) classes at runtime
Stuart Johnston 15:48 on 07 Jul 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52