1 # class pq\Result implements Traversable, Countable
5 See [Fetching Results](pq/Result/: Fetching Results) for a general overview.
12 The query sent to the server was empty.
14 The query did not generate a result set and completed successfully.
16 The query successfully generated a result set.
18 The result contains a single row of the result set when using pq\Connection::$unbuffered.
20 COPY data can be recevied from the server.
22 COPY data can be sent to the server.
24 The server sent a bad response.
26 A nonfatal error (notice or warning) occurred.
28 A fatal error occurred.
34 Fetch rows numerically indexed, where the index start with 0.
36 Fetch rows associatively indexed by column name.
38 Fetch rows as stdClass instance, where the column names are the property names.
43 Automatically convert 'f' and 't' to FALSE and TRUE and vice versa.
45 Automatically convert integral strings to either int if it fits into maximum integer size or else to float and vice versa.
47 Automatically convert floating point numbers.
49 Do all scalar conversions listed above.
51 Automatically convert arrays.
53 Automatically convert date strings to pq\DateTime and vice versa.
55 Automatically convert JSON.
62 * public (readonly) int $status
63 A [status constant](pq/Result#Status.values:).
64 * public (readonly) string $statusMessage
65 The accompanying status messsage.
66 * public (readonly) string $errorMessage
67 Any error message if $status indicates an error.
68 * public (readonly) int $numRows
69 The number of rows in the result set.
70 * public (readonly) int $numCols
71 The number of fields in a single tuple of the result set.
72 * public (readonly) int $affectedRows
73 The number of rows affected by a statement.
74 * public int $fetchType = pq\Result::FETCH_ARRAY
75 The [type of return value](pq/Result#Fetch.types:) the fetch methods should return when no fetch type argument was given. Defaults to pq\Connection::$defaultFetchType.
76 * public int $autoConvert = pq\Result::CONV_ALL
77 What [type of conversions](pq/Result#Conversion.bits:) to perform automatically.