Skip to content

Commit e3d22d3

Browse files
committed
Merge branch 'redshift'
2 parents 3d9064a + f635d4c commit e3d22d3

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

Changes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Revision history for Perl extension URI::db.
22

33
0.18
4+
- Added URI::redshift to support db:redshift: URIs, thanks to a pull
5+
request from Steve Caldwell (PR #12).
46

57
0.17 2016-02-03T18:35:33Z
68
- Added URI::_ado, which subclasses URI::_odbc to provide a `dbi_dsn()`

lib/URI/redshift.pm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package URI::redshift;
2+
use base 'URI::pg';
3+
our $VERSION = '0.18';
4+
5+
1;

t/dbi.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ for my $spec (
7272
dbi => [ [host => 'foo'], [port => 123], [dbname => 'try'] ],
7373
qry => [ foo => 1, foo => 2, lol => 'yes' ],
7474
},
75+
{
76+
uri => 'db:redshift://foo:123/try?foo=1&foo=2&lol=yes',
77+
dsn => 'dbi:Pg:host=foo;port=123;dbname=try;foo=1;foo=2;lol=yes',
78+
dbi => [ [host => 'foo'], [port => 123], [dbname => 'try'] ],
79+
qry => [ foo => 1, foo => 2, lol => 'yes' ],
80+
},
7581
{
7682
uri => 'db:sqlite:',
7783
dsn => 'dbi:SQLite:',

t/engines.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ for my $spec (
1515
[ pg => 5432, 'pg' ],
1616
[ pgxc => 5432, 'pg' ],
1717
[ postgresxc => 5432, 'pg' ],
18+
[ redshift => 5432, 'pg' ],
1819
[ mysql => 3306, 'mysql' ],
1920
[ mariadb => 3306, 'mysql' ],
2021
[ maria => 3306, 'mysql' ],

0 commit comments

Comments
 (0)