366eb43602788d156a998c6feab55151b49ebcef
[dbsrgits/DBIx-Class-Schema-Loader.git] / lib / DBIx / Class / Schema / Loader / TableLike.pm
1 package DBIx::Class::Schema::Loader::TableLike;
2
3 use strict;
4 use warnings;
5 use base 'Class::Accessor::Grouped';
6
7 =head1 NAME
8
9 DBIx::Class::Schema::Loader::TableLike - Base Class for Tables and Views in
10 L<DBIx::Class::Schema::Loader>
11
12 =head1 METHODS
13
14 =head2 name
15
16 Name of the object.
17
18 =head2 schema
19
20 The schema (or owner) of the object.
21
22 =cut
23
24 __PACKAGE__->mk_group_accessors(simple => qw/
25     name
26     schema
27 /);
28
29 use overload
30     '""' => 'name';
31
32 =head1 SEE ALSO
33
34 L<DBIx::Class::Schema::Loader>, L<DBIx::Class::Schema::Loader::Base>
35
36 =head1 AUTHOR
37
38 See L<DBIx::Class::Schema::Loader/AUTHOR> and L<DBIx::Class::Schema::Loader/CONTRIBUTORS>.
39
40 =head1 LICENSE
41
42 This library is free software; you can redistribute it and/or modify it under
43 the same terms as Perl itself.
44
45 =cut
46
47 1;
48 # vim:et sts=4 sw=4 tw=0: