Values.GetStatementResultV2ResponseSourceFetches the temporarily cached result of an SQL statement in CSV format. The ExecuteStatement or BatchExecuteStatement operation that ran the SQL statement must have specified ResultFormat as CSV. 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 : FormattedSqlRecords.t option;The results of the SQL statement in CSV 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 GetStatementResultV2 operation needed to page through the results.
*)resultFormat : ResultFormatString.t option;The data format of the result of the SQL statement.
*)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 ]