e1dcc03caeeab834632241120565d61f0d7a8b42
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / ResultSource / Table.pm
1 package DBIx::Class::ResultSource::Table;
2
3 use strict;
4 use warnings;
5
6 use base 'DBIx::Class::ResultSource';
7 use mro 'c3';
8
9 =head1 NAME
10
11 DBIx::Class::ResultSource::Table - Table object
12
13 =head1 SYNOPSIS
14
15 =head1 DESCRIPTION
16
17 Table object that inherits from L<DBIx::Class::ResultSource>.
18
19 =head1 METHODS
20
21 =head2 from
22
23 Returns the FROM entry for the table (i.e. the table name)
24
25 =cut
26
27 sub from {
28   $_[0]->throw_exception('from() is not a setter method') if @_ > 1;
29   $_[0]->name;
30 }
31
32 =head1 FURTHER QUESTIONS?
33
34 Check the list of L<additional DBIC resources|DBIx::Class/GETTING HELP/SUPPORT>.
35
36 =head1 COPYRIGHT AND LICENSE
37
38 This module is free software L<copyright|DBIx::Class/COPYRIGHT AND LICENSE>
39 by the L<DBIx::Class (DBIC) authors|DBIx::Class/AUTHORS>. You can
40 redistribute it and/or modify it under the same terms as the
41 L<DBIx::Class library|DBIx::Class/COPYRIGHT AND LICENSE>.
42
43 =cut
44
45 1;