package DTA::Model::DTADB;

use strict;
use base 'Catalyst::Model::DBIC::Schema';

my $database = DTA->config->{'postgresql'} || die "No postgresql database configuration in config file!";

__PACKAGE__->config(
    schema_class => 'DTA::Schema',

    connect_info => {
        dsn => $database->{'dsn'},
        user => $database->{'user'},
        password => $database->{'password'},
        pg_enable_utf8 => q{1},
    }
);

=head1 NAME

DTA::Model::DTADB - Catalyst DBIC Schema Model

=head1 AUTHOR

Markus Raulf <markus.raulf@bbaw.de>

=head1 LICENSE

This library is free software, you can redistribute it and/or modify
it under the same terms as Perl itself.

=cut

1;
