| Filename | /home/vagrant/kohaclone/Koha/Schema/Result/Currency.pm |
| Statements | Executed 14 statements in 529µs |
| Calls | P | F | Exclusive Time |
Inclusive Time |
Subroutine |
|---|---|---|---|---|---|
| 1 | 1 | 1 | 34µs | 37µs | Class::C3::Componentised::BEGIN@1.1107 |
| 1 | 1 | 1 | 11µs | 22µs | Koha::Schema::Result::Currency::BEGIN@13 |
| 1 | 1 | 1 | 10µs | 86µs | Koha::Schema::Result::Currency::BEGIN@16 |
| 1 | 1 | 1 | 9µs | 16µs | Koha::Schema::Result::Currency::BEGIN@14 |
| Line | State ments |
Time on line |
Calls | Time in subs |
Code |
|---|---|---|---|---|---|
| 1 | 2 | 78µs | 2 | 41µs | # spent 37µs (34+4) within Class::C3::Componentised::BEGIN@1.1107 which was called:
# once (34µs+4µs) by Class::C3::Componentised::ensure_class_loaded at line 1 # spent 37µs making 1 call to Class::C3::Componentised::BEGIN@1.1107
# spent 4µs making 1 call to utf8::import |
| 2 | package Koha::Schema::Result::Currency; | ||||
| 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::Currency | ||||
| 10 | |||||
| 11 | =cut | ||||
| 12 | |||||
| 13 | 2 | 42µs | 2 | 33µs | # spent 22µs (11+11) within Koha::Schema::Result::Currency::BEGIN@13 which was called:
# once (11µs+11µs) by Class::C3::Componentised::ensure_class_loaded at line 13 # spent 22µs making 1 call to Koha::Schema::Result::Currency::BEGIN@13
# spent 11µs making 1 call to strict::import |
| 14 | 2 | 43µs | 2 | 23µs | # spent 16µs (9+7) within Koha::Schema::Result::Currency::BEGIN@14 which was called:
# once (9µs+7µs) by Class::C3::Componentised::ensure_class_loaded at line 14 # spent 16µs making 1 call to Koha::Schema::Result::Currency::BEGIN@14
# spent 7µs making 1 call to warnings::import |
| 15 | |||||
| 16 | 2 | 265µs | 2 | 162µs | # spent 86µs (10+76) within Koha::Schema::Result::Currency::BEGIN@16 which was called:
# once (10µs+76µs) by Class::C3::Componentised::ensure_class_loaded at line 16 # spent 86µs making 1 call to Koha::Schema::Result::Currency::BEGIN@16
# spent 76µs making 1 call to base::import |
| 17 | |||||
| 18 | =head1 TABLE: C<currency> | ||||
| 19 | |||||
| 20 | =cut | ||||
| 21 | |||||
| 22 | 1 | 20µs | 1 | 316µs | __PACKAGE__->table("currency"); # spent 316µs making 1 call to DBIx::Class::ResultSourceProxy::Table::table |
| 23 | |||||
| 24 | =head1 ACCESSORS | ||||
| 25 | |||||
| 26 | =head2 currency | ||||
| 27 | |||||
| 28 | data_type: 'varchar' | ||||
| 29 | default_value: (empty string) | ||||
| 30 | is_nullable: 0 | ||||
| 31 | size: 10 | ||||
| 32 | |||||
| 33 | =head2 symbol | ||||
| 34 | |||||
| 35 | data_type: 'varchar' | ||||
| 36 | is_nullable: 1 | ||||
| 37 | size: 5 | ||||
| 38 | |||||
| 39 | =head2 isocode | ||||
| 40 | |||||
| 41 | data_type: 'varchar' | ||||
| 42 | is_nullable: 1 | ||||
| 43 | size: 5 | ||||
| 44 | |||||
| 45 | =head2 timestamp | ||||
| 46 | |||||
| 47 | data_type: 'timestamp' | ||||
| 48 | datetime_undef_if_invalid: 1 | ||||
| 49 | default_value: current_timestamp | ||||
| 50 | is_nullable: 0 | ||||
| 51 | |||||
| 52 | =head2 rate | ||||
| 53 | |||||
| 54 | data_type: 'float' | ||||
| 55 | is_nullable: 1 | ||||
| 56 | size: [15,5] | ||||
| 57 | |||||
| 58 | =head2 active | ||||
| 59 | |||||
| 60 | data_type: 'tinyint' | ||||
| 61 | is_nullable: 1 | ||||
| 62 | |||||
| 63 | =cut | ||||
| 64 | |||||
| 65 | 1 | 25µs | 1 | 3.92ms | __PACKAGE__->add_columns( # spent 3.92ms making 1 call to DBIx::Class::ResultSourceProxy::add_columns |
| 66 | "currency", | ||||
| 67 | { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 }, | ||||
| 68 | "symbol", | ||||
| 69 | { data_type => "varchar", is_nullable => 1, size => 5 }, | ||||
| 70 | "isocode", | ||||
| 71 | { data_type => "varchar", is_nullable => 1, size => 5 }, | ||||
| 72 | "timestamp", | ||||
| 73 | { | ||||
| 74 | data_type => "timestamp", | ||||
| 75 | datetime_undef_if_invalid => 1, | ||||
| 76 | default_value => \"current_timestamp", | ||||
| 77 | is_nullable => 0, | ||||
| 78 | }, | ||||
| 79 | "rate", | ||||
| 80 | { data_type => "float", is_nullable => 1, size => [15, 5] }, | ||||
| 81 | "active", | ||||
| 82 | { data_type => "tinyint", is_nullable => 1 }, | ||||
| 83 | ); | ||||
| 84 | |||||
| 85 | =head1 PRIMARY KEY | ||||
| 86 | |||||
| 87 | =over 4 | ||||
| 88 | |||||
| 89 | =item * L</currency> | ||||
| 90 | |||||
| 91 | =back | ||||
| 92 | |||||
| 93 | =cut | ||||
| 94 | |||||
| 95 | 1 | 28µs | 1 | 105µs | __PACKAGE__->set_primary_key("currency"); # spent 105µs making 1 call to DBIx::Class::ResultSourceProxy::set_primary_key |
| 96 | |||||
| 97 | =head1 RELATIONS | ||||
| 98 | |||||
| 99 | =head2 aqbooksellers_invoiceprices | ||||
| 100 | |||||
| 101 | Type: has_many | ||||
| 102 | |||||
| 103 | Related object: L<Koha::Schema::Result::Aqbookseller> | ||||
| 104 | |||||
| 105 | =cut | ||||
| 106 | |||||
| 107 | 1 | 10µs | 1 | 373µs | __PACKAGE__->has_many( # spent 373µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
| 108 | "aqbooksellers_invoiceprices", | ||||
| 109 | "Koha::Schema::Result::Aqbookseller", | ||||
| 110 | { "foreign.invoiceprice" => "self.currency" }, | ||||
| 111 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 112 | ); | ||||
| 113 | |||||
| 114 | =head2 aqbooksellers_listprices | ||||
| 115 | |||||
| 116 | Type: has_many | ||||
| 117 | |||||
| 118 | Related object: L<Koha::Schema::Result::Aqbookseller> | ||||
| 119 | |||||
| 120 | =cut | ||||
| 121 | |||||
| 122 | 1 | 5µs | 1 | 253µs | __PACKAGE__->has_many( # spent 253µs making 1 call to DBIx::Class::Relationship::HasMany::has_many |
| 123 | "aqbooksellers_listprices", | ||||
| 124 | "Koha::Schema::Result::Aqbookseller", | ||||
| 125 | { "foreign.listprice" => "self.currency" }, | ||||
| 126 | { cascade_copy => 0, cascade_delete => 0 }, | ||||
| 127 | ); | ||||
| 128 | |||||
| 129 | |||||
| 130 | # Created by DBIx::Class::Schema::Loader v0.07025 @ 2014-05-04 22:05:05 | ||||
| 131 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MqgYbFC8CTfcBHyAiIcdVA | ||||
| 132 | |||||
| 133 | |||||
| 134 | # You can replace this text with custom content, and it will be preserved on regeneration | ||||
| 135 | 1 | 13µs | 1; |