Files
secondo/apis/python2/SecondoAPI/docs/docs_optimizer/html/optimize_query.html

108 lines
4.8 KiB
HTML
Raw Normal View History

2026-01-23 17:03:45 +08:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>optimize_query module &#8212; PySecondo-API 1.0 documentation</title>
<link rel="stylesheet" href="_static/classic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/language_data.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
</head><body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">PySecondo-API 1.0 documentation</a> &#187;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="module-optimize_query">
<span id="optimize-query-module"></span><h1>optimize_query module<a class="headerlink" href="#module-optimize_query" title="Permalink to this headline"></a></h1>
<p>The module optimize_query contains a function which sends the query
to Optimizer to be optimized and returns the optimized query back.</p>
<dl class="function">
<dt id="optimize_query.opt_comm_exec">
<em class="property">async </em><code class="sig-prename descclassname">optimize_query.</code><code class="sig-name descname">opt_comm_exec</code><span class="sig-paren">(</span><em class="sig-param">reader</em>, <em class="sig-param">writer</em>, <em class="sig-param">query</em>, <em class="sig-param">db_name</em>, <em class="sig-param">flag</em><span class="sig-paren">)</span><a class="headerlink" href="#optimize_query.opt_comm_exec" title="Permalink to this definition"></a></dt>
<dd><p>This function sends the query to Optimizer to be optimized and returns the optimized query back.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>reader</strong> The stream reader of the connection to Optimizer.</p></li>
<li><p><strong>writer</strong> The stream writer of the connection to Optimizer.</p></li>
<li><p><strong>query</strong> The the query to be optimized given as string.</p></li>
<li><p><strong>db_name</strong> The The currently open database related to the given query.</p></li>
<li><p><strong>flag</strong> The boolean value that shows if the command should be executed by optimizer (True) or should be optimized (False).</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>The optimized query as string.</p>
</dd>
</dl>
</dd></dl>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/optimize_query.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3 id="searchlabel">Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" />
<input type="submit" value="Go" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">PySecondo-API 1.0 documentation</a> &#187;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2020, Mahsa Davari.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 2.2.0.
</div>
</body>
</html>