i'm dumb
This commit is contained in:
parent
417bad4dfa
commit
6c5453cf9b
2 changed files with 13 additions and 17 deletions
|
|
@ -266,23 +266,6 @@ sub get {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getDriver ( )
|
||||
|
||||
Returns the DBI driver used by this database link
|
||||
|
||||
=cut
|
||||
|
||||
sub getDriver {
|
||||
my $self = shift;
|
||||
my $dsn = $self->get->{DNS};
|
||||
if ($dsn =~ /^dbi:(\w+):/i) {
|
||||
return $1;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getId ( )
|
||||
|
||||
Returns the ID of this database link.
|
||||
|
|
|
|||
|
|
@ -459,6 +459,19 @@ sub getNextId {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getDriver ( )
|
||||
|
||||
Returns the DBI driver used by this database link
|
||||
|
||||
=cut
|
||||
|
||||
sub getDriver {
|
||||
my $self = shift;
|
||||
return $self->{_dbh}->{Driver}->{Name};
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getRow ( table, key, keyValue )
|
||||
|
||||
Returns a row of data as a hash reference from the specified table.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue