Values.GetStatementResultResponseSourceFetches the temporarily cached result of an SQL statement in JSON format. The ExecuteStatement or BatchExecuteStatement operation that ran the SQL statement must have specified ResultFormat as JSON , or let the format default to JSON. A token is returned to page through the statement results. For more information about the Amazon Redshift Data API and CLI usage examples, see Using the Amazon Redshift Data API in the Amazon Redshift Management Guide.
type nonrec t = {records : SqlRecords.t option;The results of the SQL statement in JSON format.
*)columnMetadata : ColumnMetadataList.t option;The properties (metadata) of a column.
*)totalNumRows : Long.t option;The total number of rows in the result set returned from a query. You can use this number to estimate the number of calls to the GetStatementResult operation needed to page through the results.
*)nextToken : String_.t option;A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned NextToken value in the next NextToken parameter and retrying the command. If the NextToken field is empty, all response records have been retrieved for the request.
*)}type nonrec error = [ | `InternalServerException of InternalServerException.t| `ResourceNotFoundException of ResourceNotFoundException.t| `ValidationException of ValidationException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InternalServerException of InternalServerException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InternalServerException of InternalServerException.t
| `ResourceNotFoundException of ResourceNotFoundException.t
| `Unknown_operation_error of string * string option
| `ValidationException of ValidationException.t ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `List of
[> `Structure of
(string
* [> `Blob of Blob.t
| `Boolean of BoxedBoolean.t
| `Double of BoxedDouble.t
| `Long of BoxedLong.t
| `String of String_.t ])
list ]
list
| `Structure of
(string
* [> `Boolean of Bool_.t
| `Integer of Integer.t
| `String of String_.t ])
list ]
list
| `Long of Long.t
| `String of String_.t ])
list ]