| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/ImportItem.pm |
| Statements | Executed 0 statements in 0s |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 34µs | 38µs | Class::C3::Componentised::BEGIN@1.2612 |
| 1 | 1 | 1 | 11µs | 94µs | Koha::Schema::Result::ImportItem::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 22µs | Koha::Schema::Result::ImportItem::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 16µs | Koha::Schema::Result::ImportItem::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 42µs | # spent 38µs (34+4) within Class::C3::Componentised::BEGIN@1.2612 which was called:
# once (34µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 38µs making 1 call to Class::C3::Componentised::BEGIN@1.2612
# spent 4µs making 1 call to utf8::import | ||
| 2 | package Koha::Schema::Result::ImportItem; | ||||
| 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::ImportItem | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 34µs | # spent 22µs (10+12) within Koha::Schema::Result::ImportItem::BEGIN@13 which was called:
# once (10µs+12µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 22µs making 1 call to Koha::Schema::Result::ImportItem::BEGIN@13
# spent 12µs making 1 call to strict::import | ||
| 14 | 2 | 24µs | # spent 16µs (9+8) within Koha::Schema::Result::ImportItem::BEGIN@14 which was called:
# once (9µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::ImportItem::BEGIN@14
# spent 8µs making 1 call to warnings::import | ||
| 15 | |||||
| 16 | 2 | 178µs | # spent 94µs (11+84) within Koha::Schema::Result::ImportItem::BEGIN@16 which was called:
# once (11µs+84µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 94µs making 1 call to Koha::Schema::Result::ImportItem::BEGIN@16
# spent 84µs making 1 call to base::import | ||
| 17 | |||||
| 18 | =head1 TABLE: C<import_items> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 317µs | __PACKAGE__->table("import_items"); # spent 317µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table | ||
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 import_items_id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 import_record_id | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 itemnumber | ||||
| 39 | |||||
| 40 | data_type: 'integer' | ||||
| 41 | is_nullable: 1 | ||||
| 42 | |||||
| 43 | =head2 branchcode | ||||
| 44 | |||||
| 45 | data_type: 'varchar' | ||||
| 46 | is_nullable: 1 | ||||
| 47 | size: 10 | ||||
| 48 | |||||
| 49 | =head2 status | ||||
| 50 | |||||
| 51 | data_type: 'enum' | ||||
| 52 | default_value: 'staged' | ||||
| 53 | extra: {list => ["error","staged","imported","reverted","ignored"]} | ||||
| 54 | is_nullable: 0 | ||||
| 55 | |||||
| 56 | =head2 marcxml | ||||
| 57 | |||||
| 58 | data_type: 'longtext' | ||||
| 59 | is_nullable: 0 | ||||
| 60 | |||||
| 61 | =head2 import_error | ||||
| 62 | |||||
| 63 | data_type: 'mediumtext' | ||||
| 64 | is_nullable: 1 | ||||
| 65 | |||||
| 66 | =cut | ||||
| 67 | |||||
| 68 | 1 | 5.82ms | __PACKAGE__->add_columns( # spent 5.82ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns | ||
| 69 | "import_items_id", | ||||
| 70 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 71 | "import_record_id", | ||||
| 72 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 73 | "itemnumber", | ||||
| 74 | { data_type => "integer", is_nullable => 1 }, | ||||
| 75 | "branchcode", | ||||
| 76 | { data_type => "varchar", is_nullable => 1, size => 10 }, | ||||
| 77 | "status", | ||||
| 78 | { | ||||
| 79 | data_type => "enum", | ||||
| 80 | default_value => "staged", | ||||
| 81 | extra => { list => ["error", "staged", "imported", "reverted", "ignored"] }, | ||||
| 82 | is_nullable => 0, | ||||
| 83 | }, | ||||
| 84 | "marcxml", | ||||
| 85 | { data_type => "longtext", is_nullable => 0 }, | ||||
| 86 | "import_error", | ||||
| 87 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
| 88 | ); | ||||
| 89 | |||||
| 90 | =head1 PRIMARY KEY | ||||
| 91 | |||||
| 92 | =over 4 | ||||
| 93 | |||||
| 94 | =item * L</import_items_id> | ||||
| 95 | |||||
| 96 | =back | ||||
| 97 | |||||
| 98 | =cut | ||||
| 99 | |||||
| 100 | 1 | 113µs | __PACKAGE__->set_primary_key("import_items_id"); # spent 113µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key | ||
| 101 | |||||
| 102 | =head1 RELATIONS | ||||
| 103 | |||||
| 104 | =head2 import_record | ||||
| 105 | |||||
| 106 | Type: belongs_to | ||||
| 107 | |||||
| 108 | Related object: L<Koha::Schema::Result::ImportRecord> | ||||
| 109 | |||||
| 110 | =cut | ||||
| 111 | |||||
| 112 | 1 | 339µs | __PACKAGE__->belongs_to( # spent 339µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to | ||
| 113 | "import_record", | ||||
| 114 | "Koha::Schema::Result::ImportRecord", | ||||
| 115 | { import_record_id => "import_record_id" }, | ||||
| 116 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 117 | ); | ||||
| 118 | |||||
| 119 | |||||
| 120 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 121 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xJd76DD3iljc4uFm7iZeLQ | ||||
| 122 | |||||
| 123 | |||||
| 124 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 125 | 1; |