line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package URI::teradata; |
2
|
2
|
|
|
2
|
|
3176
|
use base 'URI::_db'; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
572
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.21'; |
4
|
|
|
|
|
|
|
|
5
|
18
|
|
|
18
|
1
|
9164
|
sub default_port { 1025 } |
6
|
2
|
|
|
2
|
0
|
10
|
sub dbi_driver { 'Teradata' } |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub _dbi_param_map { |
9
|
6
|
|
|
6
|
|
39
|
return [ DATABASE => scalar shift->dbname ]; |
10
|
|
|
|
|
|
|
} |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub dbi_dsn { |
13
|
2
|
|
|
2
|
0
|
1071
|
my $self = shift; |
14
|
|
|
|
|
|
|
return join ';' => ( |
15
|
|
|
|
|
|
|
join ( |
16
|
|
|
|
|
|
|
':' => 'dbi', $self->dbi_driver, |
17
|
2
|
|
66
|
|
|
5
|
grep { defined } $self->host, $self->_port |
|
3
|
|
|
|
|
111
|
|
18
|
|
|
|
|
|
|
), |
19
|
|
|
|
|
|
|
$self->_dsn_params || () |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |