NAME

Mojo::PgX::Cursor::Database

DESCRIPTION

Subclass of Mojo::Pg::Database. Adds the cursor method.

METHODS

cursor

my $results = $db->cursor('select * from foo');
my $results = $db->cursor('select * from foo where id >= (?)', 10);

Create a PostgreSQL cursor and return an Mojo::PgX::Cursor::Results object.

LICENSE

Copyright (C) Nathaniel Nutter.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Nathaniel Nutter nnutter@cpan.org

SEE ALSO

Mojo::PgX::Cursor, Mojo::PgX::Cursor::Cursor, Mojo::PgX::Cursor::Results