line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
13
|
|
|
13
|
|
44169
|
use utf8; |
|
13
|
|
|
|
|
152
|
|
|
13
|
|
|
|
|
118
|
|
2
|
|
|
|
|
|
|
package Biblio::Zotero::DB::Schema; |
3
|
|
|
|
|
|
|
$Biblio::Zotero::DB::Schema::VERSION = '0.003'; |
4
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader |
5
|
|
|
|
|
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
6
|
|
|
|
|
|
|
|
7
|
13
|
|
|
13
|
|
941
|
use strict; |
|
13
|
|
|
|
|
33
|
|
|
13
|
|
|
|
|
617
|
|
8
|
13
|
|
|
13
|
|
78
|
use warnings; |
|
13
|
|
|
|
|
23
|
|
|
13
|
|
|
|
|
439
|
|
9
|
|
|
|
|
|
|
|
10
|
13
|
|
|
13
|
|
70
|
use base 'DBIx::Class::Schema'; |
|
13
|
|
|
|
|
25
|
|
|
13
|
|
|
|
|
23734
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__PACKAGE__->load_namespaces; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07035 @ 2013-07-02 23:02:38 |
16
|
|
|
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UlX+tV+7vyST2GUwO/11dw |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# NOTE: extended DBIC schema below |
19
|
|
|
|
|
|
|
|
20
|
13
|
|
|
13
|
|
842996
|
use Moo; |
|
13
|
|
|
|
|
10014
|
|
|
13
|
|
|
|
|
119
|
|
21
|
13
|
|
|
13
|
|
4997
|
use Path::Class; |
|
13
|
|
|
|
|
57787
|
|
|
13
|
|
|
|
|
919
|
|
22
|
13
|
|
|
13
|
|
11883
|
use Path::Class::URI; |
|
13
|
|
|
|
|
208295
|
|
|
13
|
|
|
|
|
114
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
extends 'DBIx::Class::Schema'; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
has zotero_storage_directory => ( is => 'rw' ); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
around connection => sub { |
30
|
|
|
|
|
|
|
my ( $inner, $self, $dsn, $username, $pass, $attr ) = ( shift, @_ ); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
$self->zotero_storage_directory(dir( |
33
|
|
|
|
|
|
|
delete $attr->{zotero_storage_directory} |
34
|
|
|
|
|
|
|
)->absolute) if(exists $attr->{zotero_storage_directory}); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
$attr->{ReadOnly} = 1; # force to be readonly |
37
|
|
|
|
|
|
|
$attr->{sqlite_unicode} = 1; # strings are UTF-8 |
38
|
|
|
|
|
|
|
# there are no SQL_BLOB types in the schema, so this should be fine |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
$inner->(@_); |
41
|
|
|
|
|
|
|
}; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |