mentat/docs/apis/rust/mentat_ffi/struct.QueryBuilder.html
2018-06-22 12:08:32 +01:00

140 lines
No EOL
20 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `QueryBuilder` struct in crate `mentat_ffi`.">
<meta name="keywords" content="rust, rustlang, rust-lang, QueryBuilder">
<title>mentat_ffi::QueryBuilder - Rust</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
<link rel="stylesheet" type="text/css" href="../rustdoc.css"
id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="../dark.css">
<link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle">
<script src="../storage.js"></script>
</head>
<body class="rustdoc struct">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">&#9776;</div>
<p class='location'>Struct QueryBuilder</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.bind_value">bind_value</a><a href="#method.bind_ref_from_kw">bind_ref_from_kw</a><a href="#method.bind_ref">bind_ref</a><a href="#method.bind_long">bind_long</a><a href="#method.bind_instant">bind_instant</a><a href="#method.bind_date_time">bind_date_time</a><a href="#method.bind_type">bind_type</a><a href="#method.execute">execute</a><a href="#method.execute_scalar">execute_scalar</a><a href="#method.execute_coll">execute_coll</a><a href="#method.execute_tuple">execute_tuple</a><a href="#method.execute_rel">execute_rel</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a></div></div><p class='location'><a href='index.html'>mentat_ffi</a></p><script>window.sidebarCurrent = {name: 'QueryBuilder', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="../brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='index.html'>mentat_ffi</a>::<wbr><a class="struct" href=''>QueryBuilder</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/mentat/query_builder.rs.html#41-46' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct QueryBuilder&lt;'a&gt; { /* fields omitted */ }</pre></div>
<h2 id='methods' class='small-section-header'>
Methods<a href='#methods' class='anchor'></a>
</h2>
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt;</code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#48-117' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>&lt;T&gt;(store: &amp;'a mut <a class="struct" href="../mentat_ffi/struct.Store.html" title="struct mentat_ffi::Store">Store</a>, query: T) -&gt; <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#49-51' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.bind_value' class="method"><span id='bind_value.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.bind_value' class='fnname'>bind_value</a>&lt;T&gt;(&amp;mut self, var: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, value: T) -&gt; &amp;mut <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="../mentat_ffi/enum.TypedValue.html" title="enum mentat_ffi::TypedValue">TypedValue</a>&gt;,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#53-56' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.bind_ref_from_kw' class="method"><span id='bind_ref_from_kw.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.bind_ref_from_kw' class='fnname'>bind_ref_from_kw</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;var: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;value: <a class="struct" href="../edn/symbols/struct.Keyword.html" title="struct edn::symbols::Keyword">Keyword</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&amp;mut <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt;, <a class="struct" href="../mentat/errors/struct.Error.html" title="struct mentat::errors::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#58-62' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.bind_ref' class="method"><span id='bind_ref.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.bind_ref' class='fnname'>bind_ref</a>&lt;T&gt;(&amp;mut self, var: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, value: T) -&gt; &amp;mut <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>&gt;,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#64-67' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.bind_long' class="method"><span id='bind_long.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.bind_long' class='fnname'>bind_long</a>(&amp;mut self, var: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; &amp;mut <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#69-72' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.bind_instant' class="method"><span id='bind_instant.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.bind_instant' class='fnname'>bind_instant</a>(&amp;mut self, var: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; &amp;mut <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#74-78' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.bind_date_time' class="method"><span id='bind_date_time.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.bind_date_time' class='fnname'>bind_date_time</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;var: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;value: <a class="struct" href="../chrono/datetime/struct.DateTime.html" title="struct chrono::datetime::DateTime">DateTime</a>&lt;<a class="struct" href="../chrono/offset/utc/struct.Utc.html" title="struct chrono::offset::utc::Utc">Utc</a>&gt;<br>) -&gt; &amp;mut <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#80-83' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.bind_type' class="method"><span id='bind_type.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.bind_type' class='fnname'>bind_type</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;var: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;value_type: <a class="enum" href="../mentat_ffi/enum.ValueType.html" title="enum mentat_ffi::ValueType">ValueType</a><br>) -&gt; &amp;mut <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#85-88' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.execute' class="method"><span id='execute.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.execute' class='fnname'>execute</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../mentat_ffi/struct.QueryOutput.html" title="struct mentat_ffi::QueryOutput">QueryOutput</a>, <a class="struct" href="../mentat/errors/struct.Error.html" title="struct mentat::errors::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#90-96' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.execute_scalar' class="method"><span id='execute_scalar.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.execute_scalar' class='fnname'>execute_scalar</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="../mentat_ffi/enum.Binding.html" title="enum mentat_ffi::Binding">Binding</a>&gt;, <a class="struct" href="../mentat/errors/struct.Error.html" title="struct mentat::errors::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#98-101' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.execute_coll' class="method"><span id='execute_coll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.execute_coll' class='fnname'>execute_coll</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../mentat_ffi/enum.Binding.html" title="enum mentat_ffi::Binding">Binding</a>&gt;, <a class="struct" href="../mentat/errors/struct.Error.html" title="struct mentat::errors::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#103-106' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.execute_tuple' class="method"><span id='execute_tuple.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.execute_tuple' class='fnname'>execute_tuple</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="enum" href="../mentat_ffi/enum.Binding.html" title="enum mentat_ffi::Binding">Binding</a>&gt;&gt;, <a class="struct" href="../mentat/errors/struct.Error.html" title="struct mentat::errors::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#108-111' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.execute_rel' class="method"><span id='execute_rel.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.execute_rel' class='fnname'>execute_rel</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="../mentat_ffi/struct.RelResult.html" title="struct mentat_ffi::RelResult">RelResult</a>&lt;<a class="enum" href="../mentat_ffi/enum.Binding.html" title="enum mentat_ffi::Binding">Binding</a>&gt;, <a class="struct" href="../mentat/errors/struct.Error.html" title="struct mentat::errors::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mentat/query_builder.rs.html#113-116' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div>
<h2 id='implementations' class='small-section-header'>
Trait Implementations<a href='#implementations' class='anchor'></a>
</h2>
<div id='implementations-list'>
</div>
<h2 id='synthetic-implementations' class='small-section-header'>
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
</h2>
<div id='synthetic-implementations-list'>
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt;</code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../mentat_ffi/struct.QueryBuilder.html" title="struct mentat_ffi::QueryBuilder">QueryBuilder</a>&lt;'a&gt;</code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
<dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
<dt><kbd></kbd></dt>
<dd>Move up in search results</dd>
<dt><kbd></kbd></dt>
<dd>Move down in search results</dd>
<dt><kbd></kbd></dt>
<dd>Switch tab</dd>
<dt><kbd>&#9166;</kbd></dt>
<dd>Go to active search result</dd>
<dt><kbd>+</kbd></dt>
<dd>Expand all sections</dd>
<dt><kbd>-</kbd></dt>
<dd>Collapse all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../";
window.currentCrate = "mentat_ffi";
</script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>