blib/lib/Apache/Session/SQLite.pm

filter: Statementstmt 100% 34 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 0.0% 0 / 1 totaltotal 97.7% 43 / 44 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
↑ Summary
1 package Apache::Session::SQLite;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use vars qw($VERSION);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use base 'Apache::Session';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 $VERSION='0.21';
8  
9 2 ▶use Apache::Session;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use Apache::Session::Lock::Null;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 ▶use Apache::Session::Store::MySQL;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 2 ▶use Apache::Session::Generate::MD5;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 2 ▶use Apache::Session::Serialize::Base64;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 2 ▶sub populate {
Subroutine populate: called CC=1 SCAR=0.0
Pod undocumented
16 2 my $self = shift;
17
18 2 $self->{object_store} = Apache::Session::Store::MySQL->new($self);
19 2 $self->{lock_manager} = Apache::Session::Lock::Null->new($self);
20 2 $self->{generate} = \&Apache::Session::Generate::MD5::generate;
21 2 $self->{validate} = \&Apache::Session::Generate::MD5::validate;
22 2 $self->{serialize} = \&Apache::Session::Serialize::Base64::serialize;
23 2 $self->{unserialize} = \&Apache::Session::Serialize::Base64::unserialize;
24
25 2 return $self;
26 }
27  
28 2 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 <kobayasi@piano.gs>
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<Apache::Session>, L<Apache::Session::Flex>, L<DBD::SQLite>
64  
65  
↑ Summary