NAME

Perl5::CoreSmokeDB::Schema - DBIC::Schema for the smoke reports database

SYNOPSIS

use Perl5::CoreSmokeDB::Schema;
my $schema = Perl5::CoreSmokeDB::Schema->connect($dsn, $user, $pswd, $options);

my $report = $schema->resultset('Report')->find({ id => 1 });

DESCRIPTION

This class is used in the backend for accessing the database.

Another use is: $schema->deploy()

$schema->connection

after connection => sub { };

Check the version in the database with our $SCHEMAVERSION unless the option ignore_version was passed.

deploy()

around deploy => sub { };

Populate the tsgateway_config-table with data.

$schema->sqlite_post_connect

Install the function needed for the plevel column (for this connection). It is called just before $schema->deploy and also just after $schema->connect.

$schema->pg_post_connect

Set the application_name for this connection to Perl5CoreSmokeDB.

$schema->pg_pre_deploy

Install the function needed for the plevel column, this function is now part of that database and doesn't need reinstalling for each connection.

plevel($git-describe)

This is the function used for SQLite to set the value of the plevel column.

AUTHOR

© MMXIII- MMXII - Abe Timmerman <abeltje@cpan.org>, H.Merijn Brand

LICENSE

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

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.