songahji has asked for the wisdom of the Perl Monks concerning the following question:
I am writing a module that performs db ops. I am given a database handle on the constructor, let's say $self->{'dbh'} = $param{'dbh'};
Since there will be many kinds of db out there (oracle, mysql, etc), how do I check the the $self->{'dbh'} what kind of db I am dealing with.
Example: I want Oracle. How do I check it's Oracle handle is being passed on?
Best regards,
Songahji
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting database type from db handle
by ikegami (Patriarch) on Sep 22, 2009 at 13:44 UTC | |
by leocharre (Priest) on Sep 22, 2009 at 15:37 UTC | |
by ikegami (Patriarch) on Sep 22, 2009 at 16:09 UTC | |
by leocharre (Priest) on Sep 22, 2009 at 19:35 UTC | |
by songahji (Friar) on Sep 23, 2009 at 13:43 UTC |