Module Values.SubStatementDataSource

Information about an SQL statement.

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

    The identifier of the SQL statement. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API. A suffix indicates the number of the SQL statement. For example, d9b6c0c9-0747-4bf4-b142-e8883122f766:2 has a suffix of :2 that indicates the second SQL statement of a batch query.

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

    The amount of time in nanoseconds that the statement ran.

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

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

    *)
  4. status : StatementStatusString.t option;
    (*

    The status of the SQL statement. An example is the that the SQL statement finished.

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

    The date and time (UTC) the statement was created.

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

    The date and time (UTC) that the statement metadata was last updated.

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

    The SQL statement text.

    *)
  8. 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.

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

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

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

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

    *)
  11. 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.

    *)
}
Sourceval make : ?id:??? -> ?duration:??? -> ?error:??? -> ?status:??? -> ?createdAt:??? -> ?updatedAt:??? -> ?queryString:??? -> ?resultRows:??? -> ?resultSize:??? -> ?redshiftQueryId:??? -> ?hasResultSet:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `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