h1 -> h2 for Throws
[mdref/mdref-pq] / pq / Cursor / move.md
1 # pq\Result pq\Cursor::move([string $spec = "1"])
2
3 Move the cursor.
4 See pq\Cursor::fetch().
5
6 ## Params:
7
8 * Optional string $spec = "1"
9 What to fetch.
10
11 ### Fetch argument:
12
13 FETCH and MOVE usually accepts arguments like the following, where `count` is the number of rows:
14
15 * NEXT
16 * PRIOR
17 * FIRST
18 * LAST
19 * ABSOLUTE `count`
20 * RELATIVE `count`
21 * `count`
22 * ALL
23 * FORWARD
24 * FORWARD `count`
25 * FORWARD ALL
26 * BACKWARD
27 * BACKWARD `count`
28 * BACKWARD ALL
29
30 See the [official PostgreSQL documentaion](http://www.postgresql.org/docs/current/static/sql-move.html) for details.
31
32 ## Returns:
33
34 * pq\Result, command status.
35
36 ## Throws:
37
38 * pq\Exception\InvalidArgumentException
39 * pq\Exception\BadMethodCallException
40 * pq\Exception\RuntimeException