| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/SearchHistory.pm |
| Statements | Executed 12 statements in 447µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 30µs | 34µs | Class::C3::Componentised::BEGIN@1.1368 |
| 1 | 1 | 1 | 11µs | 78µs | Koha::Schema::Result::SearchHistory::BEGIN@16 |
| 1 | 1 | 1 | 10µs | 19µs | Koha::Schema::Result::SearchHistory::BEGIN@13 |
| 1 | 1 | 1 | 9µs | 17µs | Koha::Schema::Result::SearchHistory::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 69µs | 2 | 38µs | # spent 34µs (30+4) within Class::C3::Componentised::BEGIN@1.1368 which was called:
# once (30µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 34µs making 1 call to Class::C3::Componentised::BEGIN@1.1368
# spent 4µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::SearchHistory; | ||||
| 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::SearchHistory - Opac search history results | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 38µs | 2 | 29µs | # spent 19µs (10+10) within Koha::Schema::Result::SearchHistory::BEGIN@13 which was called:
# once (10µs+10µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 19µs making 1 call to Koha::Schema::Result::SearchHistory::BEGIN@13
# spent 10µs making 1 call to strict::import |
| 14 | 2 | 38µs | 2 | 24µs | # spent 17µs (9+7) within Koha::Schema::Result::SearchHistory::BEGIN@14 which was called:
# once (9µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 17µs making 1 call to Koha::Schema::Result::SearchHistory::BEGIN@14
# spent 8µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 234µs | 2 | 144µs | # spent 78µs (11+67) within Koha::Schema::Result::SearchHistory::BEGIN@16 which was called:
# once (11µs+67µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 78µs making 1 call to Koha::Schema::Result::SearchHistory::BEGIN@16
# spent 67µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<search_history> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 20µs | 1 | 308µs | __PACKAGE__->table("search_history"); # spent 308µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 id | ||||
| 27 | |||||
| 28 | data_type: 'integer' | ||||
| 29 | is_auto_increment: 1 | ||||
| 30 | is_nullable: 0 | ||||
| 31 | |||||
| 32 | =head2 userid | ||||
| 33 | |||||
| 34 | data_type: 'integer' | ||||
| 35 | is_nullable: 0 | ||||
| 36 | |||||
| 37 | =head2 sessionid | ||||
| 38 | |||||
| 39 | data_type: 'varchar' | ||||
| 40 | is_nullable: 0 | ||||
| 41 | size: 32 | ||||
| 42 | |||||
| 43 | =head2 query_desc | ||||
| 44 | |||||
| 45 | data_type: 'varchar' | ||||
| 46 | is_nullable: 0 | ||||
| 47 | size: 255 | ||||
| 48 | |||||
| 49 | =head2 query_cgi | ||||
| 50 | |||||
| 51 | data_type: 'text' | ||||
| 52 | is_nullable: 0 | ||||
| 53 | |||||
| 54 | =head2 type | ||||
| 55 | |||||
| 56 | data_type: 'varchar' | ||||
| 57 | default_value: 'biblio' | ||||
| 58 | is_nullable: 0 | ||||
| 59 | size: 16 | ||||
| 60 | |||||
| 61 | =head2 total | ||||
| 62 | |||||
| 63 | data_type: 'integer' | ||||
| 64 | is_nullable: 0 | ||||
| 65 | |||||
| 66 | =head2 time | ||||
| 67 | |||||
| 68 | data_type: 'timestamp' | ||||
| 69 | datetime_undef_if_invalid: 1 | ||||
| 70 | default_value: current_timestamp | ||||
| 71 | is_nullable: 0 | ||||
| 72 | |||||
| 73 | =cut | ||||
| 74 | |||||
| 75 | 1 | 23µs | 1 | 2.75ms | __PACKAGE__->add_columns( # spent 2.75ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 76 | "id", | ||||
| 77 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||||
| 78 | "userid", | ||||
| 79 | { data_type => "integer", is_nullable => 0 }, | ||||
| 80 | "sessionid", | ||||
| 81 | { data_type => "varchar", is_nullable => 0, size => 32 }, | ||||
| 82 | "query_desc", | ||||
| 83 | { data_type => "varchar", is_nullable => 0, size => 255 }, | ||||
| 84 | "query_cgi", | ||||
| 85 | { data_type => "text", is_nullable => 0 }, | ||||
| 86 | "type", | ||||
| 87 | { | ||||
| 88 | data_type => "varchar", | ||||
| 89 | default_value => "biblio", | ||||
| 90 | is_nullable => 0, | ||||
| 91 | size => 16, | ||||
| 92 | }, | ||||
| 93 | "total", | ||||
| 94 | { data_type => "integer", is_nullable => 0 }, | ||||
| 95 | "time", | ||||
| 96 | { | ||||
| 97 | data_type => "timestamp", | ||||
| 98 | datetime_undef_if_invalid => 1, | ||||
| 99 | default_value => \"current_timestamp", | ||||
| 100 | is_nullable => 0, | ||||
| 101 | }, | ||||
| 102 | ); | ||||
| 103 | |||||
| 104 | =head1 PRIMARY KEY | ||||
| 105 | |||||
| 106 | =over 4 | ||||
| 107 | |||||
| 108 | =item * L</id> | ||||
| 109 | |||||
| 110 | =back | ||||
| 111 | |||||
| 112 | =cut | ||||
| 113 | |||||
| 114 | 1 | 16µs | 1 | 73µs | __PACKAGE__->set_primary_key("id"); # spent 73µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 115 | |||||
| 116 | |||||
| 117 | # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-03-11 14:59:09 | ||||
| 118 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IDEfmaznxc6sCi0r/8ibhg | ||||
| 119 | |||||
| 120 | |||||
| 121 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 122 | 1 | 7µs | 1; |