Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: DBD::Mock and DBD-specific attributes

by lachoy (Parson)
on Aug 17, 2004 at 02:12 UTC ( #383536=note: print w/ replies, xml ) Need Help??


in reply to Re^4: DBD::Mock and DBD-specific attributes
in thread DBD::Mock and DBD-specific attributes

What might be useful is if you passed information via connect() to tell DBD::Mock what type of database handle it should emulate, like:

my $dbh = DBI->connect( 'DBI:Mock:mysql', ... ); my $dbh = DBI->connect( 'DBI:Mock:Pg', ... );

It probably wouldn't be hard to collect a list of valid attributes for each driver and store/return only these, throwing an exception on all others. That's something anyone can do, not just the driver author...

But it's all in stvn's hands now :-)

Chris
M-x auto-bs-mode


Comment on Re^5: DBD::Mock and DBD-specific attributes
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://383536]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-07-06 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (84 votes), past polls