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 received from the server.
22 COPY data can be sent to the server.
24 COPY in/out data transfer in progress.
26 The server sent a bad response.
28 A nonfatal error (notice or warning) occurred.
30 A fatal error occurred.
36 Fetch rows numerically indexed, where the index start with 0.
38 Fetch rows associatively indexed by column name.
40 Fetch rows as stdClass instance, where the column names are the property names.
45 Automatically convert 'f' and 't' to FALSE and TRUE and vice versa.
47 Automatically convert integral strings to either int if it fits into maximum integer size or else to float and vice versa.
49 Automatically convert floating point numbers.
51 Do all scalar conversions listed above.
53 Automatically convert arrays.
55 Automatically convert date strings to pq\DateTime and vice versa.
57 Automatically convert JSON.
64 * public (readonly) int $status
65 A [status constant](pq/Result#Status.values:).
66 * public (readonly) string $statusMessage
67 The accompanying status message.
68 * public (readonly) string $errorMessage
69 Any error message if $status indicates an error.
70 * public (readonly) int $numRows
71 The number of rows in the result set.
72 * public (readonly) int $numCols
73 The number of fields in a single tuple of the result set.
74 * public (readonly) int $affectedRows
75 The number of rows affected by a statement.
76 * public (readonly) array $diag
77 Error details. See [PQresultErrorField](https://www.postgresql.org/docs/current/static/libpq-exec.html#LIBPQ-PQRESULTERRORFIELD) docs.
78 * public int $fetchType = pq\Result::FETCH_ARRAY
79 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.
80 * public int $autoConvert = pq\Result::CONV_ALL
81 What [type of conversions](pq/Result#Conversion.bits:) to perform automatically.