root/lang/perl/Data-Storage/tags/Data-Storage-0.04/lib/Data/Storage/DBI/Mock.pm @ 10093

Revision 10093, 1.5 kB (checked in by hanekomu, 6 years ago)

lang/perl/Data-Storage: initial import

Line 
1package Data::Storage::DBI::Mock;
2
3# $Id: Mock.pm 10689 2006-02-02 15:59:23Z gr $
4
5use strict;
6use warnings;
7
8
9our $VERSION = '0.04';
10
11
12use base 'Data::Storage::Mock';
13
14
15sub die_on_connect {
16    my $self = shift;
17
18    # simulate the bare minimum of a ::DBH exception
19
20    throw Error::Hierarchy::Internal::DBI::DBH(
21        error  => "can't connect",
22        errstr => "can't connect",
23        err    => 1,
24    );
25}
26
27
281;
29
30
31__END__
32
33=head1 NAME
34
35Data::Storage - generic abstract storage mechanism
36
37=head1 SYNOPSIS
38
39None yet (see below).
40
41=head1 DESCRIPTION
42
43None yet. This is an early release; fully functional, but undocumented. The
44next release will have more documentation.
45
46=head1 TAGS
47
48If you talk about this module in blogs, on del.icio.us or anywhere else,
49please use the C<datastorage> tag.
50
51=head1 BUGS AND LIMITATIONS
52
53No bugs have been reported.
54
55Please report any bugs or feature requests to
56C<bug-data-storage@rt.cpan.org>, or through the web interface at
57L<http://rt.cpan.org>.
58
59=head1 INSTALLATION
60
61See perlmodinstall for information and options on installing Perl modules.
62
63=head1 AVAILABILITY
64
65The latest version of this module is available from the Comprehensive Perl
66Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN
67site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.
68
69=head1 AUTHORS
70
71Marcel GrE<uuml>nauer, C<< <marcel@cpan.org> >>
72
73=head1 COPYRIGHT AND LICENSE
74
75Copyright 2007 by Marcel GrE<uuml>nauer
76
77This library is free software; you can redistribute it and/or modify
78it under the same terms as Perl itself.
79
80=cut
81
Note: See TracBrowser for help on using the browser.