| 1 | package Database::Async::Engine::Empty; | ||
| 2 | |||
| 3 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 6 | our $VERSION = '0.019'; # VERSION | |
| 7 | |||
| 8 | 6 | ▶ | use parent qw(Database::Async::Engine); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | Database::Async::Engine::Empty - a database engine that does nothing useful | ||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | 6 | Database::Async::Engine->register_class( | |
| 19 | empty => 'Database::Async::Engine::Empty', | ||
| 20 | ); | ||
| 21 | |||
| 22 | 6 | my %queries = ( | |
| 23 | q{select 1} => { | ||
| 24 | fields => [ '?column?' ], | ||
| 25 | rows => [ | ||
| 26 | [ '1' ] | ||
| 27 | ], | ||
| 28 | }, | ||
| 29 | ); | ||
| 30 | |||
| 31 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 32 | 2 | my ($class, %args) = @_; | |
| 33 | 2 | bless \%args, $class | |
| 34 | } | ||
| 35 | |||
| 36 | 6 | 1; | |
| 37 | |||