Skip to content

Commit

Permalink
Merge pull request #48 from e11it/master
Browse files Browse the repository at this point in the history
Offset item description(Issue #46)
  • Loading branch information
bigpresh committed Dec 23, 2013
2 parents d973d54 + 27a562a commit 1297dac
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Shared/lib/Dancer/Plugin/Database/Core/Handle.pm
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,24 @@ An example of using options to control the results you get back:
=cut

=item C<offset> number
C<Offset> says to skip that many rows before beginning to return rows (postgresql).
=back
Example:
# Get the name & phone number of the 10 highest-paid men starting from 11th:
database->quick_select(
'employees',
{ gender => 'male' },
{ order_by => 'salary', offset => 10, limit => 10, columns => [qw(name phone)] }
);
=cut

sub quick_select {
my ($self, $table_name, $where, $opts) = @_;

Expand Down

0 comments on commit 1297dac

Please sign in to comment.