| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Data::Context::Finder::DB::Schema::Result::Data; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Created on: 2016-01-18 13:46:01 |
|
4
|
|
|
|
|
|
|
# Create by: Ivan Wills |
|
5
|
|
|
|
|
|
|
# $Id$ |
|
6
|
|
|
|
|
|
|
# $Revision$, $HeadURL$, $Date$ |
|
7
|
|
|
|
|
|
|
# $Revision$, $Source$, $Date$ |
|
8
|
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
9940
|
use strict; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
65
|
|
|
10
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
49
|
|
|
11
|
2
|
|
|
2
|
|
11
|
use version; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
15
|
|
|
12
|
2
|
|
|
2
|
|
145
|
use Moose; |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
19
|
|
|
13
|
2
|
|
|
2
|
|
16870
|
use MooseX::NonMoose; |
|
|
2
|
|
|
|
|
2166
|
|
|
|
2
|
|
|
|
|
8
|
|
|
14
|
2
|
|
|
2
|
|
130645
|
use utf8; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
16
|
|
|
15
|
|
|
|
|
|
|
extends 'DBIx::Class::Core'; |
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
our $VERSION = version->new('0.0.1'); |
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->load_components("InflateColumn::DateTime"); |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__PACKAGE__->table("data"); |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
|
24
|
|
|
|
|
|
|
name => { |
|
25
|
|
|
|
|
|
|
data_type => "varchar", |
|
26
|
|
|
|
|
|
|
is_nullable => 0, |
|
27
|
|
|
|
|
|
|
size => 1024, |
|
28
|
|
|
|
|
|
|
}, |
|
29
|
|
|
|
|
|
|
json => { |
|
30
|
|
|
|
|
|
|
data_type => "varchar", |
|
31
|
|
|
|
|
|
|
is_nullable => 1, |
|
32
|
|
|
|
|
|
|
}, |
|
33
|
|
|
|
|
|
|
created => { |
|
34
|
|
|
|
|
|
|
data_type => "timestamp with time zone", |
|
35
|
|
|
|
|
|
|
default_value => \"current_timestamp", |
|
36
|
|
|
|
|
|
|
is_nullable => 0, |
|
37
|
|
|
|
|
|
|
original => { |
|
38
|
|
|
|
|
|
|
default_value => \"now()" |
|
39
|
|
|
|
|
|
|
}, |
|
40
|
|
|
|
|
|
|
}, |
|
41
|
|
|
|
|
|
|
modified => { |
|
42
|
|
|
|
|
|
|
data_type => "timestamp with time zone", |
|
43
|
|
|
|
|
|
|
default_value => \"current_timestamp", |
|
44
|
|
|
|
|
|
|
is_nullable => 0, |
|
45
|
|
|
|
|
|
|
original => { |
|
46
|
|
|
|
|
|
|
default_value => \"now()" |
|
47
|
|
|
|
|
|
|
}, |
|
48
|
|
|
|
|
|
|
}, |
|
49
|
|
|
|
|
|
|
); |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("name"); |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
__PACKAGE__->inflate_column ( |
|
54
|
|
|
|
|
|
|
json => { |
|
55
|
|
|
|
|
|
|
inflate => sub { |
|
56
|
|
|
|
|
|
|
return JSON::XS->new->utf8->relaxed->shrink->decode($_[0]); |
|
57
|
|
|
|
|
|
|
}, |
|
58
|
|
|
|
|
|
|
deflate => sub { |
|
59
|
|
|
|
|
|
|
return JSON::XS->new->utf8->relaxed->shrink->encode($_[0]); |
|
60
|
|
|
|
|
|
|
}, |
|
61
|
|
|
|
|
|
|
}, |
|
62
|
|
|
|
|
|
|
); |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1; |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
__END__ |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 NAME |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Data::Context::Finder::DB::Schema::Result::Data - Minimum structure for Data::Context table |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 VERSION |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This documentation refers to Data::Context::Finder::DB::Schema::Result::Data version 0.0.1 |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
use Data::Context::Finder::DB::Schema::Result::Data; |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
# Brief but working code example(s) here showing the most common usage(s) |
|
83
|
|
|
|
|
|
|
# This section will be as far as many users bother reading, so make it as |
|
84
|
|
|
|
|
|
|
# educational and exemplary as possible. |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head2 TABLE: C<data> |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 ACCESSORS |
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 name |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
data_type: 'varchar' |
|
96
|
|
|
|
|
|
|
is_nullable: 0 |
|
97
|
|
|
|
|
|
|
size: 1024 |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 json |
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
data_type: 'json' |
|
102
|
|
|
|
|
|
|
is_nullable: 1 |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 created |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
data_type: 'timestamp with time zone' |
|
107
|
|
|
|
|
|
|
default_value: current_timestamp |
|
108
|
|
|
|
|
|
|
is_nullable: 0 |
|
109
|
|
|
|
|
|
|
original: {default_value => \"now()"} |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head2 modified |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
data_type: 'timestamp with time zone' |
|
114
|
|
|
|
|
|
|
default_value: current_timestamp |
|
115
|
|
|
|
|
|
|
is_nullable: 0 |
|
116
|
|
|
|
|
|
|
original: {default_value => \"now()"} |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head1 SUBROUTINES/METHODS |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head3 C<new ( $search, )> |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
Param: C<$search> - type (detail) - description |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Return: Data::Context::Finder::DB::Schema::Result::Data - |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Description: |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head1 PRIMARY KEY |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=over 4 |
|
131
|
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=item * L</name> |
|
133
|
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=back |
|
135
|
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head1 DIAGNOSTICS |
|
137
|
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=head1 CONFIGURATION AND ENVIRONMENT |
|
139
|
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head1 DEPENDENCIES |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=head1 INCOMPATIBILITIES |
|
143
|
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head1 BUGS AND LIMITATIONS |
|
145
|
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
There are no known bugs in this module. |
|
147
|
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
Please report problems to Ivan Wills (ivan.wills@gmail.com). |
|
149
|
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
Patches are welcome. |
|
151
|
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=head1 AUTHOR |
|
153
|
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
Ivan Wills - (ivan.wills@gmail.com) |
|
155
|
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=head1 LICENSE AND COPYRIGHT |
|
157
|
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
Copyright (c) 2016 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). |
|
159
|
|
|
|
|
|
|
All rights reserved. |
|
160
|
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
This module is free software; you can redistribute it and/or modify it under |
|
162
|
|
|
|
|
|
|
the same terms as Perl itself. See L<perlartistic>. This program is |
|
163
|
|
|
|
|
|
|
distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
|
164
|
|
|
|
|
|
|
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
|
165
|
|
|
|
|
|
|
PARTICULAR PURPOSE. |
|
166
|
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=cut |