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