Module Values.StatementDataSource

The SQL statement to run.

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

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

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

    The SQL statement.

    *)
  3. queryStrings : StatementStringList.t option;
    (*

    One or more SQL statements. Each query string in the array corresponds to one of the queries in a batch query request.

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

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

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

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

    *)
  6. statementName : StatementNameString.t option;
    (*

    The name of the SQL statement.

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

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

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

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

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

    The parameters used in a SQL statement.

    *)
  10. isBatchStatement : Boolean.t option;
    (*

    A value that indicates whether the statement is a batch query request.

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

    The data format of the result of the SQL statement.

    *)
  12. sessionId : UUID.t option;
    (*

    The session identifier of the query.

    *)
}
Sourceval make : ?id:??? -> ?queryString:??? -> ?queryStrings:??? -> ?secretArn:??? -> ?status:??? -> ?statementName:??? -> ?createdAt:??? -> ?updatedAt:??? -> ?queryParameters:??? -> ?isBatchStatement:??? -> ?resultFormat:??? -> ?sessionId:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string | `List of [> `String of StatementString.t | `Structure of (string * [> `String of ParameterName.t ]) list ] list | `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