| 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 | 143µs | 154µs | Class::C3::Componentised::BEGIN@1.2834 |
| 1 | 1 | 1 | 19µs | 30µs | Koha::Schema::Result::MessageQueue::BEGIN@13 |
| 1 | 1 | 1 | 11µs | 84µs | Koha::Schema::Result::MessageQueue::BEGIN@16 |
| 1 | 1 | 1 | 8µs | 14µs | Koha::Schema::Result::MessageQueue::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 165µs | # spent 154µs (143+11) within Class::C3::Componentised::BEGIN@1.2834 which was called:
# once (143µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 154µs making 1 call to Class::C3::Componentised::BEGIN@1.2834
# spent 11µ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 | 40µs | # spent 30µs (19+10) within Koha::Schema::Result::MessageQueue::BEGIN@13 which was called:
# once (19µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 30µs making 1 call to Koha::Schema::Result::MessageQueue::BEGIN@13
# spent 10µs making 1 call to strict::import | ||
| 14 | 2 | 20µs | # spent 14µs (8+6) within Koha::Schema::Result::MessageQueue::BEGIN@14 which was called:
# once (8µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 14µs making 1 call to Koha::Schema::Result::MessageQueue::BEGIN@14
# spent 6µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 157µs | # spent 84µs (11+73) within Koha::Schema::Result::MessageQueue::BEGIN@16 which was called:
# once (11µs+73µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 84µs making 1 call to Koha::Schema::Result::MessageQueue::BEGIN@16
# spent 73µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<message_queue> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 226µs | __PACKAGE__->table("message_queue"); # spent 226µ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 | 5.87ms | __PACKAGE__->add_columns( # spent 5.87ms 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 | 89µs | __PACKAGE__->set_primary_key("message_id"); # spent 89µ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 | 422µs | __PACKAGE__->belongs_to( # spent 422µ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 | 207µs | __PACKAGE__->belongs_to( # spent 207µ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; |