diff --git a/src/PostgresDriver/ICursor.php b/src/PostgresDriver/ICursor.php index 59b0ab49d13f659b6c71fca4f6707320c9811a61..efda5b2deb71de5bb4f362964a4e3c2366e9483f 100644 --- a/src/PostgresDriver/ICursor.php +++ b/src/PostgresDriver/ICursor.php @@ -3,10 +3,23 @@ * This file is part of mappi/store. */ namespace Grifart\Mappi\Store\PostgresDriver; -use Dibi\Connection; /** * Represents PostgreSQL cursor + * + * Cursor works same as tape. When you have 3 items on it it has these indexes. + * index: 0 1 2 3 4 + * value: - 1 2 3 - + * head: ^ + * + * - You have HEAD which you can move around and read records before, after or current. + * - You cannot ask for current position. + * - You can move to absolute position from left or from right + * - You can more relatively to any side + * - BEGINNING (0) and END (4) has no value + * - Cursor starts at BEGINNING + * - When you move too far you end in one of ends + * * @link http://www.postgresql.org/docs/9.5/static/plpgsql-cursors.html * @link http://www.postgresql.org/docs/8.1/static/sql-fetch.html * @link http://www.postgresql.org/docs/8.1/static/sql-move.html