PHPackages                             tripda/curse - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. tripda/curse

ActiveLibrary[Database &amp; ORM](/categories/database)

tripda/curse
============

A PostgreSQL cursor reader

v0.0.2(11y ago)434MITPHP

Since Apr 22Pushed 11y ago8 watchersCompare

[ Source](https://github.com/tripda/curse)[ Packagist](https://packagist.org/packages/tripda/curse)[ RSS](/packages/tripda-curse/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Curse - Cursor reader for cursed PostgreSQL's functions
=======================================================

[](#curse---cursor-reader-for-cursed-postgresqls-functions)

[![Build Status](https://camo.githubusercontent.com/3355451cc9bc501e1a7ddf7a673fb3e89ef82fb9b4c8e7560aeed9e9b1ab1918/68747470733a2f2f7472617669732d63692e6f72672f5472697064614170702f63757273652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TripdaApp/curse)

If you have large result sets returned by a PostgreSQL's function maybe is time to return a cursor and try this tiny library to help you out.

How to use it
-------------

[](#how-to-use-it)

Composer installation coming soon!

This component was made to use its own connection (You need to have a own transaction in order to use cursors in PostgreSQL) so you will need to use the component's `PDOConnection` (a wrapper for [PDO](http://php.net/pdo) with less methods and functionality) or create your own implementation of `ConnectionInterface` (for using Doctrine's DBAL, for example).

Note that the component will not declare a cursor for your query or something like that (although this will be done soon) it was made to take a function that returns a cursor. That said let's see some code (I will skip connection part because it is really, really simple).

```
