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