U Ec_ @s(ddlmZmZmZGdddeZdS))NamespacedClient query_params SKIP_IN_PATHc@s>eZdZed ddZedd ddZed ddZdS) SqlClientNcCs&|tkrtd|jjdd|||dS)z Clears the SQL cursor ``_ :arg body: Specify the cursor value in the `cursor` element to clean the cursor. 2Empty value passed for a required argument 'body'.POSTz /_sql/closeparamsheadersbodyr ValueError transportZperform_requestselfr r r r?/tmp/pip-target-m1bursmm/lib/python/elasticsearch/client/sql.py clear_cursors zSqlClient.clear_cursorformatcCs&|tkrtd|jjdd|||dS)aW Executes a SQL request ``_ :arg body: Use the `query` element to start a query. Use the `cursor` element to continue a query. :arg format: a short version of the Accept header, e.g. json, yaml rrz/_sqlrr rrrrquery&s zSqlClient.querycCs&|tkrtd|jjdd|||dS)z Translates SQL into Elasticsearch queries ``_ :arg body: Specify the query in the `query` element. rrz/_sql/translaterr rrrr translate8szSqlClient.translate)NN)NN)NN)__name__ __module__ __qualname__rrrrrrrrrs   rN)utilsrrrrrrrrs