| 1 | package URI::exasol; | ||||||||||||||||||||||||||||
| 2 | 2 | ▶ | use base 'URI::_odbc'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 2 | our $VERSION = '0.24'; | |||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | 21 | ▶ | sub default_port { 8563 } | ||||||||||||||||||||||||||
|
Subroutine
default_port: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | 20 | ▶ | sub _dbi_param_map { | ||||||||||||||||||||||||||
|
Subroutine
_dbi_param_map: called CC=4 SCAR=14.0
| |||||||||||||||||||||||||||||
| 8 | 20 | my $self = shift; | |||||||||||||||||||||||||||
| 9 | 20 | my $host = $self->host; | |||||||||||||||||||||||||||
| 10 | 20 | my $port = $self->_port; | |||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | # Just return the DSN if no host or port. | ||||||||||||||||||||||||||||
| 13 | 20 | ▶ | return [ DSN => scalar $self->dbname ] unless $host || $port; | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
$host or $port
MC/DC50%1/2
$host or $port
$host
$port
Truth table66%2/3
A or B
A= $hostB= $port
| |||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | return ( | ||||||||||||||||||||||||||||
| 16 | 9 | ▶ | [ EXAHOST => $host ], | ||||||||||||||||||||||||||
|
Condition66%2/3
$port || $self->default_port
MC/DC0%0/2
$port || $self->default_port
$port
$self->default_port
Truth table66%2/3
A || B
A= $portB= $self->default_port
| |||||||||||||||||||||||||||||
| 17 | [ EXAPORT => $port || $self->default_port ], | ||||||||||||||||||||||||||||
| 18 | ); | ||||||||||||||||||||||||||||
| 19 | } | ||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 2 | 1; | |||||||||||||||||||||||||||