blib/lib/URI/yugabyte.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 8 | 8 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 1 | 3 | 33.3 |
total | 14 | 16 | 87.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package URI::yugabyte; | ||||||
2 | 2 | 2 | 3167 | use base 'URI::_db'; | |||
2 | 9 | ||||||
2 | 484 | ||||||
3 | our $VERSION = '0.21'; | ||||||
4 | |||||||
5 | 42 | 42 | 1 | 18439 | sub default_port { 5433 } | ||
6 | 5 | 5 | 0 | 16 | sub dbi_driver { 'Pg' } | ||
7 | 40 | 40 | 0 | 19997 | sub canonical_engine { 'pg' } | ||
8 | |||||||
9 | sub _dbi_param_map { | ||||||
10 | 15 | 15 | 64 | my $self = shift; | |||
11 | return ( | ||||||
12 | 15 | 47 | [ host => scalar $self->host ], | ||||
13 | [ port => scalar $self->port ], # Always pass the port | ||||||
14 | [ dbname => scalar $self->dbname ], | ||||||
15 | ); | ||||||
16 | } | ||||||
17 | |||||||
18 | 1; |