All URIs are relative to http://127.0.0.1:9308
Method | HTTP request | Description |
---|---|---|
sql | Post /sql | Perform SQL requests |
crate::models::SqlResponse sql(body, raw_response) Perform SQL requests
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 mytable
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.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
body | String | A query parameter string. | [required] | |
raw_response | Option<bool> | Optional parameter, defines a format of response. Can be set to False for Select only queries and set to True for any type of queries. Default value is 'True'. |
[default to true] |
No authorization required
- Content-Type: text/plain
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]