Module Values.DescribeStatementResponseSource

Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information includes when the query started, when it finished, the query status, the number of rows returned, and the SQL statement. 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.

Sourcetype nonrec t = {
  1. id : UUID.t option;
    (*

    The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.

    *)
  2. secretArn : SecretArn.t option;
    (*

    The name or Amazon Resource Name (ARN) of the secret that enables access to the database.

    *)
  3. dbUser : String_.t option;
    (*

    The database user name.

    *)
  4. database : String_.t option;
    (*

    The name of the database.

    *)
  5. clusterIdentifier : String_.t option;
    (*

    The cluster identifier.

    *)
  6. duration : Long.t option;
    (*

    The amount of time in nanoseconds that the statement ran.

    *)
  7. error : String_.t option;
    (*

    The error message from the cluster if the SQL statement encountered an error while running.

    *)
  8. status : StatusString.t option;
    (*

    The status of the SQL statement being described. Status values are defined as follows: ABORTED - The query run was stopped by the user. ALL - A status value that includes all query statuses. This value can be used to filter results. FAILED - The query run failed. FINISHED - The query has finished running. PICKED - The query has been chosen to be run. STARTED - The query run has started. SUBMITTED - The query was submitted, but not yet processed.

    *)
  9. createdAt : Timestamp.t option;
    (*

    The date and time (UTC) when the SQL statement was submitted to run.

    *)
  10. updatedAt : Timestamp.t option;
    (*

    The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.

    *)
  11. redshiftPid : Long.t option;
    (*

    The process identifier from Amazon Redshift.

    *)
  12. hasResultSet : Boolean.t option;
    (*

    A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.

    *)
  13. queryString : StatementString.t option;
    (*

    The SQL statement text.

    *)
  14. resultRows : Long.t option;
    (*

    Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A -1 indicates the value is null.

    *)
  15. resultSize : Long.t option;
    (*

    The size in bytes of the returned results. A -1 indicates the value is null.

    *)
  16. redshiftQueryId : Long.t option;
    (*

    The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query column of the STL_QUERY system view.

    *)
  17. queryParameters : SqlParametersList.t option;
    (*

    The parameters for the SQL statement.

    *)
  18. subStatements : SubStatementList.t option;
    (*

    The SQL statements from a multiple statement run.

    *)
  19. workgroupName : WorkgroupNameString.t option;
    (*

    The serverless workgroup name or Amazon Resource Name (ARN).

    *)
  20. resultFormat : ResultFormatString.t option;
    (*

    The data format of the result of the SQL statement.

    *)
  21. sessionId : String_.t option;
    (*

    The session identifier of the query.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalServerException of InternalServerException.t
  2. | `ResourceNotFoundException of ResourceNotFoundException.t
  3. | `ValidationException of ValidationException.t
  4. | `Unknown_operation_error of string * string option
]
Sourceval make : ?id:??? -> ?secretArn:??? -> ?dbUser:??? -> ?database:??? -> ?clusterIdentifier:??? -> ?duration:??? -> ?error:??? -> ?status:??? -> ?createdAt:??? -> ?updatedAt:??? -> ?redshiftPid:??? -> ?hasResultSet:??? -> ?queryString:??? -> ?resultRows:??? -> ?resultSize:??? -> ?redshiftQueryId:??? -> ?queryParameters:??? -> ?subStatements:??? -> ?workgroupName:??? -> ?resultFormat:??? -> ?sessionId:??? -> unit -> t
Sourceval 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 ]
Sourceval 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 ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `List of [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `Long of Long.t | `String of ParameterName.t | `Timestamp of Timestamp.t ]) list ] list | `Long of Long.t | `String of UUID.t | `Timestamp of Timestamp.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t