| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/CourseReserve.pm |
| Statements | Executed 15 statements in 507µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 24µs | 27µs | Class::C3::Componentised::BEGIN@1.2540 |
| 1 | 1 | 1 | 10µs | 18µs | Koha::Schema::Result::CourseReserve::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 66µs | Koha::Schema::Result::CourseReserve::BEGIN@16 |
| 1 | 1 | 1 | 9µs | 15µs | Koha::Schema::Result::CourseReserve::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 73µs | 2 | 30µs | # spent 27µs (24+3) within Class::C3::Componentised::BEGIN@1.2540 which was called:
# once (24µs+3µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 27µs making 1 call to Class::C3::Componentised::BEGIN@1.2540
# spent 3µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::CourseReserve; | ||||
| 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::CourseReserve | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 38µs | 2 | 27µs | # spent 18µs (10+8) within Koha::Schema::Result::CourseReserve::BEGIN@13 which was called:
# once (10µs+8µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 18µs making 1 call to Koha::Schema::Result::CourseReserve::BEGIN@13
# spent 8µs making 1 call to strict::import |
| 14 | 2 | 40µs | 2 | 21µs | # spent 15µs (9+6) within Koha::Schema::Result::CourseReserve::BEGIN@14 which was called:
# once (9µs+6µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 15µs making 1 call to Koha::Schema::Result::CourseReserve::BEGIN@14
# spent 6µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 256µs | 2 | 123µs | # spent 66µs (10+57) within Koha::Schema::Result::CourseReserve::BEGIN@16 which was called:
# once (10µs+57µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 66µs making 1 call to Koha::Schema::Result::CourseReserve::BEGIN@16
# spent 57µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<course_reserves> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 19µs | 1 | 286µs | __PACKAGE__->table("course_reserves"); # spent 286µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 cr_id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 course_id | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_foreign_key: 1 | ||||
| 36 | is_nullable: 0 | ||||
| 37 | |||||
| 38 | =head2 ci_id | ||||
| 39 | |||||
| 40 | data_type: 'integer' | ||||
| 41 | is_foreign_key: 1 | ||||
| 42 | is_nullable: 0 | ||||
| 43 | |||||
| 44 | =head2 staff_note | ||||
| 45 | |||||
| 46 | data_type: 'mediumtext' | ||||
| 47 | is_nullable: 1 | ||||
| 48 | |||||
| 49 | =head2 public_note | ||||
| 50 | |||||
| 51 | data_type: 'mediumtext' | ||||
| 52 | is_nullable: 1 | ||||
| 53 | |||||
| 54 | =head2 timestamp | ||||
| 55 | |||||
| 56 | data_type: 'timestamp' | ||||
| 57 | datetime_undef_if_invalid: 1 | ||||
| 58 | default_value: current_timestamp | ||||
| 59 | is_nullable: 0 | ||||
| 60 | |||||
| 61 | =cut | ||||
| 62 | |||||
| 63 | 1 | 21µs | 1 | 1.40ms | __PACKAGE__->add_columns( # spent 1.40ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 64 | "cr_id", | ||||
| 65 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 66 | "course_id", | ||||
| 67 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 68 | "ci_id", | ||||
| 69 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||||
| 70 | "staff_note", | ||||
| 71 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
| 72 | "public_note", | ||||
| 73 | { data_type => "mediumtext", is_nullable => 1 }, | ||||
| 74 | "timestamp", | ||||
| 75 | { | ||||
| 76 | data_type => "timestamp", | ||||
| 77 | datetime_undef_if_invalid => 1, | ||||
| 78 | default_value => \"current_timestamp", | ||||
| 79 | is_nullable => 0, | ||||
| 80 | }, | ||||
| 81 | ); | ||||
| 82 | |||||
| 83 | =head1 PRIMARY KEY | ||||
| 84 | |||||
| 85 | =over 4 | ||||
| 86 | |||||
| 87 | =item * L</cr_id> | ||||
| 88 | |||||
| 89 | =back | ||||
| 90 | |||||
| 91 | =cut | ||||
| 92 | |||||
| 93 | 1 | 16µs | 1 | 78µs | __PACKAGE__->set_primary_key("cr_id"); # spent 78µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 94 | |||||
| 95 | =head1 UNIQUE CONSTRAINTS | ||||
| 96 | |||||
| 97 | =head2 C<pseudo_key> | ||||
| 98 | |||||
| 99 | =over 4 | ||||
| 100 | |||||
| 101 | =item * L</course_id> | ||||
| 102 | |||||
| 103 | =item * L</ci_id> | ||||
| 104 | |||||
| 105 | =back | ||||
| 106 | |||||
| 107 | =cut | ||||
| 108 | |||||
| 109 | 1 | 21µs | 1 | 30µs | __PACKAGE__->add_unique_constraint("pseudo_key", ["course_id", "ci_id"]); # spent 30µs making 1 call to DBIx::Class::ResultSourceProxy::add_unique_constraint |
| 110 | |||||
| 111 | =head1 RELATIONS | ||||
| 112 | |||||
| 113 | =head2 ci | ||||
| 114 | |||||
| 115 | Type: belongs_to | ||||
| 116 | |||||
| 117 | Related object: L<Koha::Schema::Result::CourseItem> | ||||
| 118 | |||||
| 119 | =cut | ||||
| 120 | |||||
| 121 | 1 | 9µs | 1 | 299µs | __PACKAGE__->belongs_to( # spent 299µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 122 | "ci", | ||||
| 123 | "Koha::Schema::Result::CourseItem", | ||||
| 124 | { ci_id => "ci_id" }, | ||||
| 125 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||||
| 126 | ); | ||||
| 127 | |||||
| 128 | =head2 course | ||||
| 129 | |||||
| 130 | Type: belongs_to | ||||
| 131 | |||||
| 132 | Related object: L<Koha::Schema::Result::Course> | ||||
| 133 | |||||
| 134 | =cut | ||||
| 135 | |||||
| 136 | 1 | 4µs | 1 | 165µs | __PACKAGE__->belongs_to( # spent 165µs making 1 call to DBIx::Class::Relationship::BelongsTo::belongs_to |
| 137 | "course", | ||||
| 138 | "Koha::Schema::Result::Course", | ||||
| 139 | { course_id => "course_id" }, | ||||
| 140 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||||
| 141 | ); | ||||
| 142 | |||||
| 143 | |||||
| 144 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-09-02 09:46:54 | ||||
| 145 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4RbSgGvSM5wH1jpE+deLlA | ||||
| 146 | |||||
| 147 | |||||
| 148 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 149 | 1 | 10µs | 1; |