Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 22 lines (18 sloc) 0.561 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
package Koha::RoseDB;

use Rose::DB;
use Koha;
use C4::Context;
our @ISA = qw(Rose::DB);

# Use a private registry for this class
__PACKAGE__->use_private_registry;

__PACKAGE__->register_db(
      domain => __PACKAGE__->default_domain,
      type => __PACKAGE__->default_type,
      driver => 'mysql',
      database => C4::Context->config('database'),
      host => C4::Context->config('hostname'),
      port => C4::Context->config('port'),
      username => C4::Context->config('user'),
      password => C4::Context->config('pass'),
);

1;
Something went wrong with that request. Please try again.