Module Values.ExecuteStatementResponseSource

The response elements represent the output of a request to run a SQL statement against a database.

Sourcetype nonrec t = {
  1. records : SqlRecords.t option;
    (*

    The records returned by the SQL statement. This field is blank if the formatRecordsAs parameter is set to JSON.

    *)
  2. columnMetadata : Metadata.t option;
    (*

    Metadata for the columns included in the results. This field is blank if the formatRecordsAs parameter is set to JSON.

    *)
  3. numberOfRecordsUpdated : RecordsUpdated.t option;
    (*

    The number of records updated by the request.

    *)
  4. generatedFields : FieldList.t option;
    (*

    Values for fields generated during a DML request. The generatedFields data isn't supported by Aurora PostgreSQL. To get the values of generated fields, use the RETURNING clause. For more information, see Returning Data From Modified Rows in the PostgreSQL documentation.

    *)
  5. formattedRecords : FormattedSqlRecords.t option;
    (*

    A string value that represents the result set of a SELECT statement in JSON format. This value is only present when the formatRecordsAs parameter is set to JSON. The size limit for this field is currently 10 MB. If the JSON-formatted string representing the result set requires more than 10 MB, the call returns an error.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `BadRequestException of BadRequestException.t
  3. | `DatabaseErrorException of DatabaseErrorException.t
  4. | `DatabaseNotFoundException of DatabaseNotFoundException.t
  5. | `DatabaseResumingException of DatabaseResumingException.t
  6. | `DatabaseUnavailableException of DatabaseUnavailableException.t
  7. | `ForbiddenException of ForbiddenException.t
  8. | `HttpEndpointNotEnabledException of HttpEndpointNotEnabledException.t
  9. | `InternalServerErrorException of InternalServerErrorException.t
  10. | `InvalidResourceStateException of InvalidResourceStateException.t
  11. | `InvalidSecretException of InvalidSecretException.t
  12. | `SecretsErrorException of SecretsErrorException.t
  13. | `ServiceUnavailableError of ServiceUnavailableError.t
  14. | `StatementTimeoutException of StatementTimeoutException.t
  15. | `TransactionNotFoundException of TransactionNotFoundException.t
  16. | `UnsupportedResultException of UnsupportedResultException.t
  17. | `Unknown_operation_error of string * string option
]
Sourceval make : ?records:??? -> ?columnMetadata:??? -> ?numberOfRecordsUpdated:??? -> ?generatedFields:??? -> ?formattedRecords:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `BadRequestException of BadRequestException.t | `DatabaseErrorException of DatabaseErrorException.t | `DatabaseNotFoundException of DatabaseNotFoundException.t | `DatabaseResumingException of DatabaseResumingException.t | `DatabaseUnavailableException of unit | `ForbiddenException of ForbiddenException.t | `HttpEndpointNotEnabledException of HttpEndpointNotEnabledException.t | `InternalServerErrorException of unit | `InvalidResourceStateException of InvalidResourceStateException.t | `InvalidSecretException of InvalidSecretException.t | `SecretsErrorException of SecretsErrorException.t | `ServiceUnavailableError of unit | `StatementTimeoutException of StatementTimeoutException.t | `TransactionNotFoundException of TransactionNotFoundException.t | `Unknown_operation_error of string * string option | `UnsupportedResultException of UnsupportedResultException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `BadRequestException of BadRequestException.t | `DatabaseErrorException of DatabaseErrorException.t | `DatabaseNotFoundException of DatabaseNotFoundException.t | `DatabaseResumingException of DatabaseResumingException.t | `DatabaseUnavailableException of unit | `ForbiddenException of ForbiddenException.t | `HttpEndpointNotEnabledException of HttpEndpointNotEnabledException.t | `InternalServerErrorException of unit | `InvalidResourceStateException of InvalidResourceStateException.t | `InvalidSecretException of InvalidSecretException.t | `SecretsErrorException of SecretsErrorException.t | `ServiceUnavailableError of unit | `StatementTimeoutException of StatementTimeoutException.t | `TransactionNotFoundException of TransactionNotFoundException.t | `Unknown_operation_error of string * string option | `UnsupportedResultException of UnsupportedResultException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `List of [> `Structure of (string * Awso.Botodata.value) list ] list | `Structure of (string * Awso.Botodata.value) list ] list | `Long of RecordsUpdated.t | `String of FormattedSqlRecords.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