| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/ImportRecord.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 24µs | 28µs | Class::C3::Componentised::BEGIN@1.444 |
| 1 | 1 | 1 | 10µs | 21µs | Koha::Schema::Result::ImportRecord::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 79µs | Koha::Schema::Result::ImportRecord::BEGIN@16 |
| 1 | 1 | 1 | 8µs | 16µs | Koha::Schema::Result::ImportRecord::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 31µs | # spent 28µs (24+4) within Class::C3::Componentised::BEGIN@1.444 which was called:
# once (24µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 28µs making 1 call to Class::C3::Componentised::BEGIN@1.444
# spent 4µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::ImportRecord; | ||||
| 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::ImportRecord | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 33µs | # spent 21µs (10+11) within Koha::Schema::Result::ImportRecord::BEGIN@13 which was called:
# once (10µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 21µs making 1 call to Koha::Schema::Result::ImportRecord::BEGIN@13
# spent 11µs making 1 call to strict::import | ||
| 14 | 2 | 24µs | # spent 16µs (8+8) within Koha::Schema::Result::ImportRecord::BEGIN@14 which was called:
# once (8µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::ImportRecord::BEGIN@14
# spent 8µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 149µs | # spent 79µs (9+70) within Koha::Schema::Result::ImportRecord::BEGIN@16 which was called:
# once (9µs+70µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 79µs making 1 call to Koha::Schema::Result::ImportRecord::BEGIN@16
# spent 70µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<import_records> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 352µs | __PACKAGE__->table("import_records"); # spent 352µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 import_record_id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 import_batch_id | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 branchcode | ||||
| 39 | |||||
| 40 | data_type: 'varchar' | ||||
| 41 | is_nullable: 1 | ||||
| 42 | size: 10 | ||||
| 43 | |||||
| 44 | =head2 record_sequence | ||||
| 45 | |||||
| 46 | data_type: 'integer' | ||||
| 47 | default_value: 0 | ||||
| 48 | is_nullable: 0 | ||||
| 49 | |||||
| 50 | =head2 upload_timestamp | ||||
| 51 | |||||
| 52 | data_type: 'timestamp' | ||||
| 53 | datetime_undef_if_invalid: 1 | ||||
| 54 | default_value: current_timestamp | ||||
| 55 | is_nullable: 0 | ||||
| 56 | |||||
| 57 | =head2 import_date | ||||
| 58 | |||||
| 59 | data_type: 'date' | ||||
| 60 | datetime_undef_if_invalid: 1 | ||||
| 61 | is_nullable: 1 | ||||
| 62 | |||||
| 63 | =head2 marc | ||||
| 64 | |||||
| 65 | data_type: 'longblob' | ||||
| 66 | is_nullable: 0 | ||||
| 67 | |||||
| 68 | =head2 marcxml | ||||
| 69 | |||||
| 70 | data_type: 'longtext' | ||||
| 71 | is_nullable: 0 | ||||
| 72 | |||||
| 73 | =head2 marcxml_old | ||||
| 74 | |||||
| 75 | data_type: 'longtext' | ||||
| 76 | is_nullable: 0 | ||||
| 77 | |||||
| 78 | =head2 record_type | ||||
| 79 | |||||
| 80 | data_type: 'enum' | ||||
| 81 | default_value: 'biblio' | ||||
| 82 | extra: {list => ["biblio","auth","holdings"]} | ||||
| 83 | is_nullable: 0 | ||||
| 84 | |||||
| 85 | =head2 overlay_status | ||||
| 86 | |||||
| 87 | data_type: 'enum' | ||||
| 88 | default_value: 'no_match' | ||||
| 89 | extra: {list => ["no_match","auto_match","manual_match","match_applied"]} | ||||
| 90 | is_nullable: 0 | ||||
| 91 | |||||
| 92 | =head2 status | ||||
| 93 | |||||
| 94 | data_type: 'enum' | ||||
| 95 | default_value: 'staged' | ||||
| 96 | extra: {list => ["error","staged","imported","reverted","items_reverted","ignored"]} | ||||
| 97 | is_nullable: 0 | ||||
| 98 | |||||
| 99 | =head2 import_error | ||||
| 100 | |||||
| 101 | data_type: 'mediumtext' | ||||
| 102 | is_nullable: 1 | ||||
| 103 | |||||
| 104 | =head2 encoding | ||||
| 105 | |||||
| 106 | data_type: 'varchar' | ||||
| 107 | default_value: (empty string) | ||||
| 108 | is_nullable: 0 | ||||
| 109 | size: 40 | ||||
| 110 | |||||
| 111 | =head2 z3950random | ||||
| 112 | |||||
| 113 | data_type: 'varchar' | ||||
| 114 | is_nullable: 1 | ||||
| 115 | size: 40 | ||||
| 116 | |||||
| 117 | =cut | ||||
| 118 | |||||
| 119 | 1 | 8.21ms | __PACKAGE__->add_columns( # spent 8.21ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 120 | "import_record_id", | ||||
| 121 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 122 | "import_batch_id", | ||||
| 123 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 124 | "branchcode", | ||||
| 125 | { data_type => "varchar", is_nullable => 1, size => 10 }, | ||||
| 126 | "record_sequence", | ||||
| 127 | { data_type => "integer", default_value => 0, is_nullable => 0 }, | ||||
| 128 | "upload_timestamp", | ||||
| 129 | { | ||||
| 130 | data_type => "timestamp", | ||||
| 131 | datetime_undef_if_invalid => 1, | ||||
| 132 | default_value => \"current_timestamp", | ||||
| 133 | is_nullable => 0, | ||||
| 134 | }, | ||||
| 135 | "import_date", | ||||
| 136 | { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, | ||||
| 137 | "marc", | ||||
| 138 | { data_type => "longblob", is_nullable => 0 }, | ||||
| 139 | "marcxml", | ||||
| 140 | { data_type => "longtext", is_nullable => 0 }, | ||||
| 141 | "marcxml_old", | ||||
| 142 | { data_type => "longtext", is_nullable => 0 }, | ||||
| 143 | "record_type", | ||||
| 144 | { | ||||
| 145 | data_type => "enum", | ||||
| 146 | default_value => "biblio", | ||||
| 147 | extra => { list => ["biblio", "auth", "holdings"] }, | ||||
| 148 | is_nullable => 0, | ||||
| 149 | }, | ||||
| 150 | "overlay_status", | ||||
| 151 | { | ||||
| 152 | data_type => "enum", | ||||
| 153 | default_value => "no_match", | ||||
| 154 | extra => { | ||||
| 155 | list => ["no_match", "auto_match", "manual_match", "match_applied"], | ||||
| 156 | }, | ||||
| 157 | is_nullable => 0, | ||||
| 158 | }, | ||||
| 159 | "status", | ||||
| 160 | { | ||||
| 161 | data_type => "enum", | ||||
| 162 | default_value => "staged", | ||||
| 163 | extra => { | ||||
| 164 | list => [ | ||||
| 165 | "error", | ||||
| 166 | "staged", | ||||
| 167 | "imported", | ||||
| 168 | "reverted", | ||||
| 169 | "items_reverted", | ||||
| 170 | "ignored", | ||||
| 171 | ], | ||||
| 172 | }, | ||||
| 173 | is_nullable => 0, | ||||
| 174 | }, | ||||
| 175 | "import_error", | ||||
| 176 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
| 177 | "encoding", | ||||
| 178 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 }, | ||||
| 179 | "z3950random", | ||||
| 180 | { data_type => "varchar", is_nullable => 1, size => 40 }, | ||||
| 181 | ); | ||||
| 182 | |||||
| 183 | =head1 PRIMARY KEY | ||||
| 184 | |||||
| 185 | =over 4 | ||||
| 186 | |||||
| 187 | =item * L</import_record_id> | ||||
| 188 | |||||
| 189 | =back | ||||
| 190 | |||||
| 191 | =cut | ||||
| 192 | |||||
| 193 | 1 | 91µs | __PACKAGE__->set_primary_key("import_record_id"); # spent 91µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 194 | |||||
| 195 | =head1 RELATIONS | ||||
| 196 | |||||
| 197 | =head2 import_auths | ||||
| 198 | |||||
| 199 | Type: has_many | ||||
| 200 | |||||
| 201 | Related object: L<Koha::Schema::Result::ImportAuth> | ||||
| 202 | |||||
| 203 | =cut | ||||
| 204 | |||||
| 205 | 1 | 342µs | __PACKAGE__->has_many( # spent 342µs making 1 call to DBIx::Class::Relationship::HasMany::has_many | ||
| 206 | "import_auths", | ||||
| 207 | "Koha::Schema::Result::ImportAuth", | ||||
| 208 | { "foreign.import_record_id" => "self.import_record_id" }, | ||||
| 209 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 210 | ); | ||||
| 211 | |||||
| 212 | =head2 import_batch | ||||
| 213 | |||||
| 214 | Type: belongs_to | ||||
| 215 | |||||
| 216 | Related object: L<Koha::Schema::Result::ImportBatch> | ||||
| 217 | |||||
| 218 | =cut | ||||
| 219 | |||||
| 220 | 1 | 211µs | __PACKAGE__->belongs_to( # spent 211µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 221 | "import_batch", | ||||
| 222 | "Koha::Schema::Result::ImportBatch", | ||||
| 223 | { import_batch_id => "import_batch_id" }, | ||||
| 224 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 225 | ); | ||||
| 226 | |||||
| 227 | =head2 import_biblios | ||||
| 228 | |||||
| 229 | Type: has_many | ||||
| 230 | |||||
| 231 | Related object: L<Koha::Schema::Result::ImportBiblio> | ||||
| 232 | |||||
| 233 | =cut | ||||
| 234 | |||||
| 235 | 1 | 241µs | __PACKAGE__->has_many( # spent 241µs making 1 call to DBIx::Class::Relationship::HasMany::has_many | ||
| 236 | "import_biblios", | ||||
| 237 | "Koha::Schema::Result::ImportBiblio", | ||||
| 238 | { "foreign.import_record_id" => "self.import_record_id" }, | ||||
| 239 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 240 | ); | ||||
| 241 | |||||
| 242 | =head2 import_items | ||||
| 243 | |||||
| 244 | Type: has_many | ||||
| 245 | |||||
| 246 | Related object: L<Koha::Schema::Result::ImportItem> | ||||
| 247 | |||||
| 248 | =cut | ||||
| 249 | |||||
| 250 | 1 | 241µs | __PACKAGE__->has_many( # spent 241µs making 1 call to DBIx::Class::Relationship::HasMany::has_many | ||
| 251 | "import_items", | ||||
| 252 | "Koha::Schema::Result::ImportItem", | ||||
| 253 | { "foreign.import_record_id" => "self.import_record_id" }, | ||||
| 254 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 255 | ); | ||||
| 256 | |||||
| 257 | =head2 import_record_matches | ||||
| 258 | |||||
| 259 | Type: has_many | ||||
| 260 | |||||
| 261 | Related object: L<Koha::Schema::Result::ImportRecordMatch> | ||||
| 262 | |||||
| 263 | =cut | ||||
| 264 | |||||
| 265 | 1 | 232µs | __PACKAGE__->has_many( # spent 232µs making 1 call to DBIx::Class::Relationship::HasMany::has_many | ||
| 266 | "import_record_matches", | ||||
| 267 | "Koha::Schema::Result::ImportRecordMatch", | ||||
| 268 | { "foreign.import_record_id" => "self.import_record_id" }, | ||||
| 269 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 270 | ); | ||||
| 271 | |||||
| 272 | |||||
| 273 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55 | ||||
| 274 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jhzXlqw5mA1lGsI9SZEv/Q | ||||
| 275 | |||||
| 276 | |||||
| 277 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 278 | 1; |