Schema/PgLog/Structure/Log.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ResultSet/PgLog.pm ↑ Summary Schema/PgLog/Structure/LogSet.pm »
1 package DBIx::Class::Schema::PgLog::Structure::Log;
2  
3 3 ▶use 5.006;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 DBIx::Class::Schema::PgLog::Structure::Log
10  
11 =head1 VERSION
12  
13 Version 0.03
14  
15 =cut
16  
17 3 our $VERSION = '0.03';
18  
19  
20 =head1 SYNOPSIS
21  
22 Perhaps a little code snippet.
23  
24 use DBIx::Class::Schema::PgLog::Structure::Log;
25  
26 my $foo = DBIx::Class::Schema::PgLog::Structure::Log->new();
27 ...
28  
29 =head1 EXPORT
30  
31 A list of functions that can be exported. You can delete this section
32 if you don't export anything, such as for a purely object-oriented module.
33  
34 =head1 SUBROUTINES/METHODS
35  
36 =cut
37  
38 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 3 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
40 3 ▶use MooseX::MarkAsMethods autoclean => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
41 3 extends 'DBIx::Class::Core';
42  
43 =head1 TABLE: C<Log>
44  
45 =cut
46  
47 3 __PACKAGE__->table("Log");
48  
49 =head1 ACCESSORS
50  
51 =head2 Id
52  
53 data_type: 'integer'
54 is_auto_increment: 1
55 is_nullable: 0
56 sequence: '"Log_Id_seq"'
57  
58 =head2 LogSetId
59  
60 data_type: 'bigint'
61 is_nullable: 0
62  
63 =head2 Epoch
64  
65 data_type: 'integer'
66 is_nullable: 0
67  
68 =head2 Table
69  
70 data_type: 'varchar'
71 is_nullable: 0
72 size: 128
73  
74 =head2 TableId
75  
76 data_type: 'bigint'
77 is_nullable: 0
78  
79 =head2 TableAction
80  
81 data_type: 'enum'
82 default_value: 'UPDATE'
83 extra: {custom_type_name => "objectactiontype",list => ["INSERT","UPDATE","DELETE"]}
84 is_nullable: 0
85  
86 =head2 Columns
87  
88 data_type: 'character varying[]'
89 is_nullable: 1
90 size: 255
91  
92 =head2 OldValues
93  
94 data_type: 'text[]'
95 is_nullable: 1
96  
97 =head2 NewValues
98  
99 data_type: 'text[]'
100 is_nullable: 1
101  
102 =cut
103  
104 3 __PACKAGE__->add_columns(
105 "Id",
106 {
107 data_type => "integer",
108 is_auto_increment => 1,
109 is_nullable => 0,
110 sequence => "\"Log_Id_seq\"",
111 },
112 "LogSetId",
113 { data_type => "bigint", is_nullable => 0 },
114 "Epoch",
115 { data_type => "integer", is_nullable => 0 },
116 "Table",
117 { data_type => "varchar", is_nullable => 0, size => 128 },
118 "TableId",
119 { data_type => "bigint", is_nullable => 0 },
120 "TableAction",
121 {
122 data_type => "enum",
123 default_value => "UPDATE",
124 extra => {
125 custom_type_name => "tableactiontype",
126 list => ["INSERT", "UPDATE", "DELETE"],
127 },
128 is_nullable => 0,
129 },
130 "Columns",
131 { data_type => "character varying[]", is_nullable => 1, size => 255 },
132 "OldValues",
133 { data_type => "text[]", is_nullable => 1 },
134 "NewValues",
135 { data_type => "text[]", is_nullable => 1 },
136 "UserId",
137 { data_type => "integer", is_nullable => 0 },
138 );
139  
140 =head1 PRIMARY KEY
141  
142 =over 4
143  
144 =item * L</Id>
145  
146 =back
147  
148 =cut
149  
150 3 __PACKAGE__->set_primary_key("Id");
151  
152  
153  
154 =head1 AUTHOR
155  
156 Sheeju Alex, C<< <sheeju at exceleron.com> >>
157  
158 =head1 BUGS
159  
160 Please report any bugs or feature requests to C<bug-dbix-class-pglog at rt.cpan.org>, or through
161 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DBIx-Class-PgLog>. I will be notified, and then you'll
162 automatically be notified of progress on your bug as I make changes.
163  
164  
165  
166  
167 =head1 SUPPORT
168  
169 You can find documentation for this module with the perldoc command.
170  
171 perldoc DBIx::Class::Schema::PgLog::Structure::Log
172  
173  
174 You can also look for information at:
175  
176 =over 4
177  
178 =item * RT: CPAN's request tracker (report bugs here)
179  
180 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=DBIx-Class-PgLog>
181  
182 =item * AnnoCPAN: Annotated CPAN documentation
183  
184 L<http://annocpan.org/dist/DBIx-Class-PgLog>
185  
186 =item * CPAN Ratings
187  
188 L<http://cpanratings.perl.org/d/DBIx-Class-PgLog>
189  
190 =item * Search CPAN
191  
192 L<http://search.cpan.org/dist/DBIx-Class-PgLog/>
193  
194 =back
195  
196  
197 =head1 ACKNOWLEDGEMENTS
198  
199  
200 =head1 LICENSE AND COPYRIGHT
201  
202 Copyright 2013 Sheeju Alex.
203  
204 This program is free software; you can redistribute it and/or modify it
205 under the terms of the the Artistic License (2.0). You may obtain a
206 copy of the full license at:
207  
208 L<http://www.perlfoundation.org/artistic_license_2_0>
209  
210 Any use, modification, and distribution of the Standard or Modified
211 Versions is governed by this Artistic License. By using, modifying or
212 distributing the Package, you accept this license. Do not use, modify,
213 or distribute the Package, if you do not accept this license.
214  
215 If your Modified Version has been derived from a Modified Version made
216 by someone other than you, you are nevertheless required to ensure that
217 your Modified Version complies with the requirements of this license.
218  
219 This license does not grant you the right to use any trademark, service
220 mark, tradename, or logo of the Copyright Holder.
221  
222 This license includes the non-exclusive, worldwide, free-of-charge
223 patent license to make, have made, use, offer to sell, sell, import and
224 otherwise transfer the Package with respect to any patent claims
225 licensable by the Copyright Holder that are necessarily infringed by the
226 Package. If you institute patent litigation (including a cross-claim or
227 counterclaim) against any party alleging that the Package constitutes
228 direct or contributory patent infringement, then this Artistic License
229 to you shall terminate on the date that such litigation is filed.
230  
231 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
232 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
233 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
234 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
235 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
236 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
237 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
238 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
239  
240  
241 =cut
242  
243 3 __PACKAGE__->meta->make_immutable;
244 3 1; # End of DBIx::Class::Schema::PgLog::Structure::Log
« ResultSet/PgLog.pm ↑ Summary Schema/PgLog/Structure/LogSet.pm »