File: DB.pm

package info (click to toggle)
librose-db-object-perl 1%3A0.815-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,048 kB
  • sloc: perl: 79,670; sql: 28; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Rose::DB subclass to handle the db connection
package My::DB;
use strict;
use base 'Rose::DB';

__PACKAGE__->use_private_registry;

My::DB->register_db
(
  type     => 'default',
  domain   => 'default',
  driver   => 'Pg',
  database => 'test',
  username => 'postgres',
);

1;