line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
529519
|
use 5.006; |
|
1
|
|
|
|
|
2
|
|
2
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
20
|
|
3
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
47
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package Metabase::Archive::PostgreSQL; |
6
|
|
|
|
|
|
|
# ABSTRACT: Metabase archive backend using PostgreSQL |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '1.001'; |
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
4
|
use Moose; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
6
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
with 'Metabase::Backend::PostgreSQL'; |
13
|
|
|
|
|
|
|
with 'Metabase::Archive::SQL'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
1; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__END__ |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
=pod |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=encoding UTF-8 |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 NAME |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Metabase::Archive::PostgreSQL - Metabase archive backend using PostgreSQL |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 VERSION |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
version 1.001 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 SYNOPSIS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
use Metabase::Archive::PostgreSQL; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
my $archive = Metabase::Archive::PostgreSQL->new( |
36
|
|
|
|
|
|
|
db_name => "cpantesters", |
37
|
|
|
|
|
|
|
db_user => "johndoe", |
38
|
|
|
|
|
|
|
db_pass => "PaSsWoRd", |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 DESCRIPTION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
This is an implementation of the L<Metabase::Archive::SQL> role using |
44
|
|
|
|
|
|
|
PostgreSQL. |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 USAGE |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
See L<Metabase::Backend::PostgreSQL>, L<Metabase::Archive> and |
49
|
|
|
|
|
|
|
L<Metabase::Librarian>. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=for Pod::Coverage::TrustPod store extract delete iterator initialize |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 AUTHORS |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=over 4 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=item * |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
David Golden <dagolden@cpan.org> |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item * |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Leon Brocard <acme@astray.org> |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=back |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This software is Copyright (c) 2011 by David Golden. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This is free software, licensed under: |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The Apache License, Version 2.0, January 2004 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |