Filename | /home/vagrant/kohaclone/Koha/Schema/Result/MessageQueue.pm |
Statements | Executed 0 statements in 0s |
Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
---|---|---|---|---|---|
1 | 1 | 1 | 46µs | 50µs | BEGIN@1.2133 | Class::C3::Componentised::
1 | 1 | 1 | 13µs | 122µs | BEGIN@16 | Koha::Schema::Result::MessageQueue::
1 | 1 | 1 | 12µs | 26µs | BEGIN@13 | Koha::Schema::Result::MessageQueue::
1 | 1 | 1 | 11µs | 22µs | BEGIN@14 | Koha::Schema::Result::MessageQueue::
Line | State ments |
Time on line |
Calls | Time in subs |
Code |
---|---|---|---|---|---|
1 | 2 | 55µs | # spent 50µs (46+5) within Class::C3::Componentised::BEGIN@1.2133 which was called:
# once (46µs+5µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 50µs making 1 call to Class::C3::Componentised::BEGIN@1.2133
# spent 5µs making 1 call to utf8::import | ||
2 | package Koha::Schema::Result::MessageQueue; | ||||
3 | |||||
4 | # Created by DBIx::Class::Schema::Loader | ||||
5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||||
6 | |||||
7 | =head1 NAME | ||||
8 | |||||
9 | Koha::Schema::Result::MessageQueue | ||||
10 | |||||
11 | =cut | ||||
12 | |||||
13 | 2 | 39µs | # spent 26µs (12+14) within Koha::Schema::Result::MessageQueue::BEGIN@13 which was called:
# once (12µs+14µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 26µs making 1 call to Koha::Schema::Result::MessageQueue::BEGIN@13
# spent 14µs making 1 call to strict::import | ||
14 | 2 | 33µs | # spent 22µs (11+11) within Koha::Schema::Result::MessageQueue::BEGIN@14 which was called:
# once (11µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 22µs making 1 call to Koha::Schema::Result::MessageQueue::BEGIN@14
# spent 11µs making 1 call to warnings::import | ||
15 | |||||
16 | 2 | 232µs | # spent 122µs (13+110) within Koha::Schema::Result::MessageQueue::BEGIN@16 which was called:
# once (13µs+110µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 122µs making 1 call to Koha::Schema::Result::MessageQueue::BEGIN@16
# spent 110µs making 1 call to base::import | ||
17 | |||||
18 | =head1 TABLE: C<message_queue> | ||||
19 | |||||
20 | =cut | ||||
21 | |||||
22 | 1 | 452µs | __PACKAGE__->table("message_queue"); # spent 452µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
23 | |||||
24 | =head1 ACCESSORS | ||||
25 | |||||
26 | =head2 message_id | ||||
27 | |||||
28 | data_type: 'integer' | ||||
29 | is_auto_increment: 1 | ||||
30 | is_nullable: 0 | ||||
31 | |||||
32 | =head2 borrowernumber | ||||
33 | |||||
34 | data_type: 'integer' | ||||
35 | is_foreign_key: 1 | ||||
36 | is_nullable: 1 | ||||
37 | |||||
38 | =head2 subject | ||||
39 | |||||
40 | data_type: 'text' | ||||
41 | is_nullable: 1 | ||||
42 | |||||
43 | =head2 content | ||||
44 | |||||
45 | data_type: 'text' | ||||
46 | is_nullable: 1 | ||||
47 | |||||
48 | =head2 metadata | ||||
49 | |||||
50 | data_type: 'text' | ||||
51 | is_nullable: 1 | ||||
52 | |||||
53 | =head2 letter_code | ||||
54 | |||||
55 | data_type: 'varchar' | ||||
56 | is_nullable: 1 | ||||
57 | size: 64 | ||||
58 | |||||
59 | =head2 message_transport_type | ||||
60 | |||||
61 | data_type: 'varchar' | ||||
62 | is_foreign_key: 1 | ||||
63 | is_nullable: 0 | ||||
64 | size: 20 | ||||
65 | |||||
66 | =head2 status | ||||
67 | |||||
68 | data_type: 'enum' | ||||
69 | default_value: 'pending' | ||||
70 | extra: {list => ["sent","pending","failed","deleted"]} | ||||
71 | is_nullable: 0 | ||||
72 | |||||
73 | =head2 time_queued | ||||
74 | |||||
75 | data_type: 'timestamp' | ||||
76 | datetime_undef_if_invalid: 1 | ||||
77 | default_value: current_timestamp | ||||
78 | is_nullable: 0 | ||||
79 | |||||
80 | =head2 to_address | ||||
81 | |||||
82 | data_type: 'mediumtext' | ||||
83 | is_nullable: 1 | ||||
84 | |||||
85 | =head2 from_address | ||||
86 | |||||
87 | data_type: 'mediumtext' | ||||
88 | is_nullable: 1 | ||||
89 | |||||
90 | =head2 content_type | ||||
91 | |||||
92 | data_type: 'text' | ||||
93 | is_nullable: 1 | ||||
94 | |||||
95 | =cut | ||||
96 | |||||
97 | 1 | 6.46ms | __PACKAGE__->add_columns( # spent 6.46ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
98 | "message_id", | ||||
99 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
100 | "borrowernumber", | ||||
101 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||||
102 | "subject", | ||||
103 | { data_type => "text", is_nullable => 1 }, | ||||
104 | "content", | ||||
105 | { data_type => "text", is_nullable => 1 }, | ||||
106 | "metadata", | ||||
107 | { data_type => "text", is_nullable => 1 }, | ||||
108 | "letter_code", | ||||
109 | { data_type => "varchar", is_nullable => 1, size => 64 }, | ||||
110 | "message_transport_type", | ||||
111 | { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 20 }, | ||||
112 | "status", | ||||
113 | { | ||||
114 | data_type => "enum", | ||||
115 | default_value => "pending", | ||||
116 | extra => { list => ["sent", "pending", "failed", "deleted"] }, | ||||
117 | is_nullable => 0, | ||||
118 | }, | ||||
119 | "time_queued", | ||||
120 | { | ||||
121 | data_type => "timestamp", | ||||
122 | datetime_undef_if_invalid => 1, | ||||
123 | default_value => \"current_timestamp", | ||||
124 | is_nullable => 0, | ||||
125 | }, | ||||
126 | "to_address", | ||||
127 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
128 | "from_address", | ||||
129 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
130 | "content_type", | ||||
131 | { data_type => "text", is_nullable => 1 }, | ||||
132 | ); | ||||
133 | |||||
134 | =head1 PRIMARY KEY | ||||
135 | |||||
136 | =over 4 | ||||
137 | |||||
138 | =item * L</message_id> | ||||
139 | |||||
140 | =back | ||||
141 | |||||
142 | =cut | ||||
143 | |||||
144 | 1 | 100µs | __PACKAGE__->set_primary_key("message_id"); # spent 100µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
145 | |||||
146 | =head1 RELATIONS | ||||
147 | |||||
148 | =head2 borrowernumber | ||||
149 | |||||
150 | Type: belongs_to | ||||
151 | |||||
152 | Related object: L<Koha::Schema::Result::Borrower> | ||||
153 | |||||
154 | =cut | ||||
155 | |||||
156 | 1 | 410µs | __PACKAGE__->belongs_to( # spent 410µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
157 | "borrowernumber", | ||||
158 | "Koha::Schema::Result::Borrower", | ||||
159 | { borrowernumber => "borrowernumber" }, | ||||
160 | { | ||||
161 | is_deferrable => 1, | ||||
162 | join_type => "LEFT", | ||||
163 | on_delete => "CASCADE", | ||||
164 | on_update => "CASCADE", | ||||
165 | }, | ||||
166 | ); | ||||
167 | |||||
168 | =head2 message_transport_type | ||||
169 | |||||
170 | Type: belongs_to | ||||
171 | |||||
172 | Related object: L<Koha::Schema::Result::MessageTransportType> | ||||
173 | |||||
174 | =cut | ||||
175 | |||||
176 | 1 | 209µs | __PACKAGE__->belongs_to( # spent 209µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
177 | "message_transport_type", | ||||
178 | "Koha::Schema::Result::MessageTransportType", | ||||
179 | { message_transport_type => "message_transport_type" }, | ||||
180 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "CASCADE" }, | ||||
181 | ); | ||||
182 | |||||
183 | |||||
184 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-06-22 16:37:20 | ||||
185 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nQcmtLCbGEeLFLFP4jwy2g | ||||
186 | |||||
187 | |||||
188 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
189 | 1; |