manticoresearch v1.0.0 Manticoresearch.Api.Utils
API calls for all endpoints tagged Utils
.
Link to this section Summary
Functions
Perform SQL requests
Run a query in SQL format. Expects is a query parameters string that can be in two modes: Select only query as `query=SELECT FROM myindex. The query string MUST be URL encoded * any type of query in format
mode=raw&query=SHOW TABLES. The string must be as is (no URL encoding) and
modemust be first. The response object depends on the query executed. In select mode the response has same format as
/search` operation.
Link to this section Functions
sql(connection, body, opts \\ [])
Specs
sql(Tesla.Env.client(), String.t(), keyword()) :: {:ok, map()} | {:error, Tesla.Env.t()}
Perform SQL requests
Run a query in SQL format. Expects is a query parameters string that can be in two modes: Select only query as `query=SELECT FROM myindex. The query string MUST be URL encoded * any type of query in format
mode=raw&query=SHOW TABLES. The string must be as is (no URL encoding) and
modemust be first. The response object depends on the query executed. In select mode the response has same format as
/search` operation.
Parameters
- connection (Manticoresearch.Connection): Connection to server
- body (String.t): Expects is a query parameters string that can be in two modes: Select only query as `query=SELECT FROM myindex
. The query string MUST be URL encoded * any type of query in format
mode=raw&query=SHOW TABLES. The string must be as is (no URL encoding) and
mode` must be first. - opts (KeywordList): [optional] Optional parameters
Returns
} on success {:error, info} on failure