SQLEngine/Driver/Trait/NoLimit.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
import
2.0
sql_limit
2.0
BEGIN
2.0
CRAP 2.0
1 =head1 NAME
2  
3 DBIx::SQLEngine::Driver::Trait::NoLimit - For databases without select limit
4  
5 =head1 SYNOPSIS
6  
7 # Classes can import this behavior if they don't have limit
8 use DBIx::SQLEngine::Driver::Trait::NoLimit ':all';
9
10 =head1 DESCRIPTION
11  
12 This package works with DBD drivers which are implemented in Perl using SQL::Statement. It combines several other traits and methods which can be shared by most such drivers.
13  
14 =head2 About Driver Traits
15  
16 You do not need to use this package directly; it is used internally by those driver subclasses which need it.
17  
18 For more information about Driver Traits, see L<DBIx::SQLEngine::Driver/"About Driver Traits">.
19  
20 =cut
21  
22 ########################################################################
23  
24 package DBIx::SQLEngine::Driver::Trait::NoLimit;
25  
26 use strict;
27 use Carp;
28 use vars qw( @EXPORT_OK %EXPORT_TAGS );
29  
30 ########################################################################
31  
32 use Exporter;
33 sub import { goto &Exporter::import }
34 @EXPORT_OK = (
35 qw(
36 sql_limit
37 ),
38 );
39 %EXPORT_TAGS = ( all => \@EXPORT_OK );
40  
41 ########################################################################
42  
43 =head1 REFERENCE
44  
45 The following methods are provided:
46  
47 =cut
48  
49 ########################################################################
50  
51 =head2 Select to Retrieve Data
52  
53 =over 4
54  
55 =item sql_limit
56  
57 $sqldb->sql_limit( $limit, $offset, $sql, @params ) : $sql, @params
58  
59 Not supported.
60  
61 =back
62  
63 =cut
64  
65 sub sql_limit {
66 my $self = shift;
67 my ( $limit, $offset, $sql, @params ) = @_;
68
69 return ($sql, @params);
70 }
71  
72 ########################################################################
73  
74 =head1 SEE ALSO
75  
76 See L<DBIx::SQLEngine> for the overall interface and developer documentation.
77  
78 See L<DBIx::SQLEngine::Docs::ReadMe> for general information about
79 this distribution, including installation and license information.
80  
81 See L<DBIx::Sequence> for another version of the sequence-table functionality, which greatly inspired this module.
82  
83 =cut
84  
85 ########################################################################
86  
87 1;
88