File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ package URI::exasol ;
2
+ use base ' URI::_odbc' ;
3
+ our $VERSION = ' 0.18' ;
4
+
5
+ sub default_port { 8563 }
6
+
7
+ sub _dbi_param_map {
8
+ my $self = shift ;
9
+ my $host = $self -> host;
10
+ my $port = $self -> _port;
11
+
12
+ # Just return the DSN if no host or port.
13
+ return [ DSN => scalar $self -> dbname ] unless $host || $port ;
14
+
15
+ # Fetch the driver from the query params.
16
+ require URI::QueryParam;
17
+ return (
18
+ [ EXAHOST => $host ],
19
+ [ EXAPORT => $port || $self -> default_port ],
20
+ );
21
+ }
22
+
23
+ 1;
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ for my $spec (
47
47
[ derby => 1527, ' derby' ],
48
48
[ vertica => 5433, ' vertica' ],
49
49
[ ldapdb => undef , ' ldapdb' ],
50
+ [ exasol => 8563, ' exasol' ],
50
51
) {
51
52
my ($engine , $port , $canon ) = @{ $spec };
52
53
my $prefix = " db:$engine " ;
You can’t perform that action at this time.
0 commit comments