line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Apache::Session::SQLite; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
64087
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
80
|
|
4
|
2
|
|
|
2
|
|
10
|
use vars qw($VERSION); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
108
|
|
5
|
2
|
|
|
2
|
|
10
|
use base 'Apache::Session'; |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
2285
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
$VERSION='0.21'; |
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
3918
|
use Apache::Session; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
45
|
|
10
|
2
|
|
|
2
|
|
1765
|
use Apache::Session::Lock::Null; |
|
2
|
|
|
|
|
322
|
|
|
2
|
|
|
|
|
49
|
|
11
|
2
|
|
|
2
|
|
1902
|
use Apache::Session::Store::MySQL; |
|
2
|
|
|
|
|
58469
|
|
|
2
|
|
|
|
|
68
|
|
12
|
2
|
|
|
2
|
|
3412
|
use Apache::Session::Generate::MD5; |
|
2
|
|
|
|
|
720
|
|
|
2
|
|
|
|
|
65
|
|
13
|
2
|
|
|
2
|
|
1898
|
use Apache::Session::Serialize::Base64; |
|
2
|
|
|
|
|
22138
|
|
|
2
|
|
|
|
|
303
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub populate { |
16
|
2
|
|
|
2
|
0
|
128160
|
my $self = shift; |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
|
|
26
|
$self->{object_store} = Apache::Session::Store::MySQL->new($self); |
19
|
2
|
|
|
|
|
46
|
$self->{lock_manager} = Apache::Session::Lock::Null->new($self); |
20
|
2
|
|
|
|
|
21
|
$self->{generate} = \&Apache::Session::Generate::MD5::generate; |
21
|
2
|
|
|
|
|
7
|
$self->{validate} = \&Apache::Session::Generate::MD5::validate; |
22
|
2
|
|
|
|
|
6
|
$self->{serialize} = \&Apache::Session::Serialize::Base64::serialize; |
23
|
2
|
|
|
|
|
8
|
$self->{unserialize} = \&Apache::Session::Serialize::Base64::unserialize; |
24
|
|
|
|
|
|
|
|
25
|
2
|
|
|
|
|
9
|
return $self; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=pod |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Apache::Session::SQLite - use DBD::SQLite for Apache::Session storage |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SYNOPSIS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
use Apache::Session::SQLite; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
tie %hash, 'Apache::Session::SQLite', $id, { |
41
|
|
|
|
|
|
|
DataSource => 'dbi:SQLite:dbname=/tmp/hoge.db'}; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 DESCRIPTION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This module is equal to the following. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
tie %hash,'Apache::Session::Flex',$id,{ |
48
|
|
|
|
|
|
|
Store => 'MySQL', |
49
|
|
|
|
|
|
|
Lock => 'Null', |
50
|
|
|
|
|
|
|
Generate => 'MD5', |
51
|
|
|
|
|
|
|
Serialize => 'Base64', |
52
|
|
|
|
|
|
|
DataSource => 'dbi:SQLite:dbname=/tmp/hoge.db'}; |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 AUTHOR |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Kobayashi Hiroyuki |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
59
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 SEE ALSO |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
L, L, L |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
|