blib/lib/Mojo/PgX/Cursor/Database.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 3 | 5 | 60.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 1 | 2 | 50.0 |
pod | 1 | 1 | 100.0 |
total | 5 | 8 | 62.5 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Mojo::PgX::Cursor::Database; | ||||||
2 | |||||||
3 | require Mojo::PgX::Cursor::Cursor; | ||||||
4 | require Mojo::PgX::Cursor::Results; | ||||||
5 | |||||||
6 | 1 | 1 | 1089 | use Mojo::Base 'Mojo::Pg::Database'; | |||
1 | 2 | ||||||
1 | 6 | ||||||
7 | |||||||
8 | sub cursor { | ||||||
9 | 0 | 0 | 1 | my $cursor = Mojo::PgX::Cursor::Cursor->new( | |||
10 | db => shift, | ||||||
11 | query => shift, | ||||||
12 | bind => \@_, | ||||||
13 | ); | ||||||
14 | 0 | return Mojo::PgX::Cursor::Results->new(cursor => $cursor); | |||||
15 | } | ||||||
16 | |||||||
17 | 1; | ||||||
18 | __END__ |