pub async fn sql(
configuration: &Configuration,
body: &str,
raw_response: Option<bool>,
) -> Result<Vec<Value>, Error<SqlError>>
Expand description
Run a query in SQL format. Expects a query string passed through body
parameter and optional raw_response
parameter that defines a format of response. raw_response
can be set to False
for Select queries only, e.g., SELECT * FROM myindex
The query string must stay as it is, no URL encoding is needed. The response object depends on the query executed. In select mode the response has same format as /search
operation.