]> iEval git - gruntmaster-data.git/blame_incremental - Gruntmaster/Data.pm
Bump version and update Changes
[gruntmaster-data.git] / Gruntmaster / Data.pm
... / ...
CommitLineData
1use utf8;
2package Gruntmaster::Data;
3
4# Created by DBIx::Class::Schema::Loader
5# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7use strict;
8use warnings;
9
10use base 'DBIx::Class::Schema';
11
12__PACKAGE__->load_namespaces;
13
14
15# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-05 13:11:39
16# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dAEmtAexvUaNXLgYz2rNEg
17
18our $VERSION = 5999.000_003;
19
20use Lingua::EN::Inflect qw/PL_N/;
21use Sub::Name qw/subname/;
22
23sub dynsub{
24 our ($name, $sub) = @_;
25 no strict 'refs';
26 *$name = subname $name => $sub
27}
28
29BEGIN {
30 for my $rs (qw/contest contest_problem job open problem user/) {
31 my $rsname = ucfirst $rs;
32 $rsname =~ s/_([a-z])/\u$1/g;
33 dynsub PL_N($rs) => sub { $_[0]->resultset($rsname) };
34 dynsub $rs => sub { $_[0]->resultset($rsname)->find($_[1]) };
35 }
36}
37
381;
39
40__END__
41
42=encoding utf-8
43
44=head1 NAME
45
46Gruntmaster::Data - Gruntmaster 6000 Online Judge -- database interface and tools
47
48=head1 SYNOPSIS
49
50 my $db = Gruntmaster::Data->connect('dbi:Pg:');
51 # Typical DBIC stuff here
52
53=head1 DESCRIPTION
54
55No documentation (yet)
56
57=head1 AUTHOR
58
59Marius Gavrilescu E<lt>marius@ieval.roE<gt>
60
61=head1 COPYRIGHT AND LICENSE
62
63Copyright (C) 2014 by Marius Gavrilescu
64
65This library is free software: you can redistribute it and/or modify
66it under the terms of the GNU Affero General Public License as published by
67the Free Software Foundation, either version 3 of the License, or
68(at your option) any later version.
69
70
71=cut
This page took 0.02063 seconds and 4 git commands to generate.