Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by stvn (Monsignor)
on Aug 17, 2004 at 01:09 UTC ( [id://383523]=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

Specifically, doing a reset on the $dbh should probably delete all the added-on attributes.

What do you mean by a 'reset'? Are you refering to the 'mock_clear_history' attribute?

Plus, I would still like to see a way of mocking a given DBD.

Well one of the things I know lachoy was trying to do was to keep DBD::Mock in a single file, so that it would be easy for other authors to include in their modules (and not have as an external dependency). So I would be hesitatant to start going to crazy with DBD::Mock::MySQL, DBD::Mock::Oracle, etc. if I can avoid it. However, that said, my experience with anything other than DBD::mysql and DBD::Pg is limited so I am not aware of how different other DBD's can be. If you have any suggestions/insight into this I would love to hear it.

-stvn
  • Comment on Re^5: DBD::Mock and DBD-specific attributes

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-24 16:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found