You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Runs a DSL query and then keep querying until all matching records have been extracted.
202
202
203
-
The API returns a maximum of 1000 records per call. If a DSL query results in more than 1000 matches, it is possible to use pagination to get more results.
203
+
The API returns a maximum of 1000 records per call. If a DSL query results in more than 1000 matches, it is possible to use pagination to get more results, up to 50k.
204
204
205
205
Iterative querying works by automatically paginating through all records available for a result set. The original query gets turned into a loop that uses the `limit` / `skip` operators until all the results available have been extracted.
206
+
207
+
NOTE If any of the iterative queries produce warning messages, these are aggregated and added to the `_warnings`section of the output data.
206
208
207
209
Parameters
208
210
----------
@@ -319,10 +321,11 @@ def query_iterative(self, q, show_results=None, limit=1000, skip=0, pause=1.5, f
<spanclass="sd">"""Runs a DSL query and then keep querying until all matching records have been extracted. </span>
269
269
<spanclass="sd"></span>
270
-
<spanclass="sd"> The API returns a maximum of 1000 records per call. If a DSL query results in more than 1000 matches, it is possible to use pagination to get more results. </span>
270
+
<spanclass="sd"> The API returns a maximum of 1000 records per call. If a DSL query results in more than 1000 matches, it is possible to use pagination to get more results, up to 50k. </span>
271
271
<spanclass="sd"></span>
272
272
<spanclass="sd"> Iterative querying works by automatically paginating through all records available for a result set. The original query gets turned into a loop that uses the `limit` / `skip` operators until all the results available have been extracted. </span>
273
+
274
+
<spanclass="sd"> NOTE If any of the iterative queries produce warning messages, these are aggregated and added to the `_warnings`section of the output data.</span>
273
275
<spanclass="sd"></span>
274
276
<spanclass="sd"> Parameters</span>
275
277
<spanclass="sd"> ----------</span>
@@ -386,10 +388,11 @@ <h1>Source code for dimcli.core.api</h1><div class="highlight"><pre>
<spanclass="sig-name descname"><spanclass="pre">query_iterative</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">q</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">show_results</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">limit</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1000</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">skip</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">pause</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1.5</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">force</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">False</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">maxlimit</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">verbose</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">_tot_count_prev_query</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">_warnings_tot</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="reference internal" href="_modules/dimcli/core/api.html#Dsl.query_iterative"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink" href="#dimcli.core.api.Dsl.query_iterative" title="Permalink to this definition"></a></dt>
272
272
<dd><p>Runs a DSL query and then keep querying until all matching records have been extracted.</p>
273
-
<p>The API returns a maximum of 1000 records per call. If a DSL query results in more than 1000 matches, it is possible to use pagination to get more results.</p>
273
+
<p>The API returns a maximum of 1000 records per call. If a DSL query results in more than 1000 matches, it is possible to use pagination to get more results, up to 50k.</p>
274
274
<p>Iterative querying works by automatically paginating through all records available for a result set. The original query gets turned into a loop that uses the <cite>limit</cite> / <cite>skip</cite> operators until all the results available have been extracted.</p>
275
+
<p>NOTE If any of the iterative queries produce warning messages, these are aggregated and added to the <ahref="#id1"><spanclass="problematic" id="id2">`</span></a>_warnings`section of the output data.</p>
Styles a text with ANSI styles and returns the new string. By default the styling is self contained which means that at the end of the string a reset code is issued. This can be prevented by passing reset=False.</p>
0 commit comments