| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Biblioimage.pm |
| Statements | Executed 13 statements in 534µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 104µs | 112µs | Class::C3::Componentised::BEGIN@1.1723 |
| 1 | 1 | 1 | 23µs | 36µs | Koha::Schema::Result::Biblioimage::BEGIN@13 |
| 1 | 1 | 1 | 19µs | 95µs | Koha::Schema::Result::Biblioimage::BEGIN@16 |
| 1 | 1 | 1 | 18µs | 29µs | Koha::Schema::Result::Biblioimage::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 111µs | 2 | 121µs | # spent 112µs (104+9) within Class::C3::Componentised::BEGIN@1.1723 which was called:
# once (104µs+9µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 112µs making 1 call to Class::C3::Componentised::BEGIN@1.1723
# spent 9µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::Biblioimage; | ||||
| 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::Biblioimage | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 62µs | 2 | 50µs | # spent 36µs (23+13) within Koha::Schema::Result::Biblioimage::BEGIN@13 which was called:
# once (23µs+13µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 36µs making 1 call to Koha::Schema::Result::Biblioimage::BEGIN@13
# spent 13µs making 1 call to strict::import |
| 14 | 2 | 56µs | 2 | 40µs | # spent 29µs (18+11) within Koha::Schema::Result::Biblioimage::BEGIN@14 which was called:
# once (18µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 29µs making 1 call to Koha::Schema::Result::Biblioimage::BEGIN@14
# spent 11µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 245µs | 2 | 171µs | # spent 95µs (19+76) within Koha::Schema::Result::Biblioimage::BEGIN@16 which was called:
# once (19µs+76µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 95µs making 1 call to Koha::Schema::Result::Biblioimage::BEGIN@16
# spent 76µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<biblioimages> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 21µs | 1 | 344µs | __PACKAGE__->table("biblioimages"); # spent 344µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 imagenumber | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 biblionumber | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 mimetype | ||||
| 39 | |||||
| 40 | data_type: 'varchar' | ||||
| 41 | is_nullable: 0 | ||||
| 42 | size: 15 | ||||
| 43 | |||||
| 44 | =head2 imagefile | ||||
| 45 | |||||
| 46 | data_type: 'mediumblob' | ||||
| 47 | is_nullable: 0 | ||||
| 48 | |||||
| 49 | =head2 thumbnail | ||||
| 50 | |||||
| 51 | data_type: 'mediumblob' | ||||
| 52 | is_nullable: 0 | ||||
| 53 | |||||
| 54 | =cut | ||||
| 55 | |||||
| 56 | 1 | 19µs | 1 | 2.25ms | __PACKAGE__->add_columns( # spent 2.25ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 57 | "imagenumber", | ||||
| 58 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 59 | "biblionumber", | ||||
| 60 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 61 | "mimetype", | ||||
| 62 | { data_type => "varchar", is_nullable => 0, size => 15 }, | ||||
| 63 | "imagefile", | ||||
| 64 | { data_type => "mediumblob", is_nullable => 0 }, | ||||
| 65 | "thumbnail", | ||||
| 66 | { data_type => "mediumblob", is_nullable => 0 }, | ||||
| 67 | ); | ||||
| 68 | |||||
| 69 | =head1 PRIMARY KEY | ||||
| 70 | |||||
| 71 | =over 4 | ||||
| 72 | |||||
| 73 | =item * L</imagenumber> | ||||
| 74 | |||||
| 75 | =back | ||||
| 76 | |||||
| 77 | =cut | ||||
| 78 | |||||
| 79 | 1 | 400ns | 1 | 33µs | __PACKAGE__->set_primary_key("imagenumber"); # spent 33µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 80 | |||||
| 81 | =head1 RELATIONS | ||||
| 82 | |||||
| 83 | =head2 biblionumber | ||||
| 84 | |||||
| 85 | Type: belongs_to | ||||
| 86 | |||||
| 87 | Related object: L<Koha::Schema::Result::Biblio> | ||||
| 88 | |||||
| 89 | =cut | ||||
| 90 | |||||
| 91 | 1 | 9µs | 1 | 431µs | __PACKAGE__->belongs_to( # spent 431µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 92 | "biblionumber", | ||||
| 93 | "Koha::Schema::Result::Biblio", | ||||
| 94 | { biblionumber => "biblionumber" }, | ||||
| 95 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 96 | ); | ||||
| 97 | |||||
| 98 | |||||
| 99 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21 | ||||
| 100 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WdDuaUrR0IC6+8jJwlev6A | ||||
| 101 | |||||
| 102 | |||||
| 103 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 104 | 1 | 9µs | 1; |