File: cockroach.pm

package info (click to toggle)
liburi-db-perl 0.23-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 356 kB
  • sloc: perl: 1,599; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package URI::cockroach;
use base 'URI::_db';
our $VERSION = '0.23';

sub default_port { 26257 }
sub dbi_driver   { 'Pg' }
sub canonical_engine { 'cockroach' }

sub _dbi_param_map {
    my $self = shift;
    return (
        [ host   => scalar $self->host   ],
        [ port   => scalar $self->port   ], # Always pass the port
        [ dbname => scalar $self->dbname ],
    );
}