Deploying to gh-pages from @ ac502b7c08 🚀

This commit is contained in:
realaravinth
2022-10-24 16:35:47 +00:00
parent af485c750d
commit 49538a56a4
92 changed files with 213 additions and 199 deletions

View File

@@ -4,8 +4,8 @@
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Connect to database</p>
</div></details><h2 id="variants" class="variants small-section-header">Variants<a href="#variants" class="anchor"></a></h2><h3 id="variant.Fresh" class="variant small-section-header"><a href="#variant.Fresh" class="anchor field"></a><code>Fresh(<a class="struct" href="struct.Fresh.html" title="struct db_sqlx_postgres::Fresh">Fresh</a>)</code></h3><div class="docblock"><p>fresh connection</p>
</div><h3 id="variant.Existing" class="variant small-section-header"><a href="#variant.Existing" class="anchor field"></a><code>Existing(<a class="struct" href="struct.Conn.html" title="struct db_sqlx_postgres::Conn">Conn</a>)</code></h3><div class="docblock"><p>existing connection</p>
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Connect-for-ConnectionOptions" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#66-90">source</a></span><a href="#impl-Connect-for-ConnectionOptions" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="prelude/trait.Connect.html" title="trait db_sqlx_postgres::prelude::Connect">Connect</a> for <a class="enum" href="enum.ConnectionOptions.html" title="enum db_sqlx_postgres::ConnectionOptions">ConnectionOptions</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Pool" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Pool" class="anchor"></a><h4 class="code-header">type <a href="prelude/trait.Connect.html#associatedtype.Pool" class="associatedtype">Pool</a> = <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h4></section></summary><div class='docblock'><p>database specific pool-type</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.connect" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#68-89">source</a></span><a href="#method.connect" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.Connect.html#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_postgres::prelude::dev::prelude::DBResult">DBResult</a>&lt;Self::<a class="associatedtype" href="prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class='docblock'><p>database specific error-type
</div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Connect-for-ConnectionOptions" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#66-87">source</a></span><a href="#impl-Connect-for-ConnectionOptions" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="prelude/trait.Connect.html" title="trait db_sqlx_postgres::prelude::Connect">Connect</a> for <a class="enum" href="enum.ConnectionOptions.html" title="enum db_sqlx_postgres::ConnectionOptions">ConnectionOptions</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Pool" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Pool" class="anchor"></a><h4 class="code-header">type <a href="prelude/trait.Connect.html#associatedtype.Pool" class="associatedtype">Pool</a> = <a class="struct" href="struct.Database.html" title="struct db_sqlx_postgres::Database">Database</a></h4></section></summary><div class='docblock'><p>database specific pool-type</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.connect" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/db_sqlx_postgres/lib.rs.html#68-86">source</a></span><a href="#method.connect" class="anchor"></a><h4 class="code-header">fn <a href="prelude/trait.Connect.html#tymethod.connect" class="fnname">connect</a>&lt;'async_trait&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="type" href="prelude/dev/prelude/type.DBResult.html" title="type db_sqlx_postgres::prelude::dev::prelude::DBResult">DBResult</a>&lt;Self::<a class="associatedtype" href="prelude/trait.Connect.html#associatedtype.Pool" title="type db_sqlx_postgres::prelude::Connect::Pool">Pool</a>&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'async_trait&gt;&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'async_trait,&nbsp;</span></h4></section></summary><div class='docblock'><p>database specific error-type
create connection pool <a href="prelude/trait.Connect.html#tymethod.connect">Read more</a></p>
</div></details></div></details></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"><section id="impl-RefUnwindSafe-for-ConnectionOptions" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-ConnectionOptions" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="enum" href="enum.ConnectionOptions.html" title="enum db_sqlx_postgres::ConnectionOptions">ConnectionOptions</a></h3></section><section id="impl-Send-for-ConnectionOptions" class="impl has-srclink"><a href="#impl-Send-for-ConnectionOptions" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="enum.ConnectionOptions.html" title="enum db_sqlx_postgres::ConnectionOptions">ConnectionOptions</a></h3></section><section id="impl-Sync-for-ConnectionOptions" class="impl has-srclink"><a href="#impl-Sync-for-ConnectionOptions" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="enum.ConnectionOptions.html" title="enum db_sqlx_postgres::ConnectionOptions">ConnectionOptions</a></h3></section><section id="impl-Unpin-for-ConnectionOptions" class="impl has-srclink"><a href="#impl-Unpin-for-ConnectionOptions" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="enum.ConnectionOptions.html" title="enum db_sqlx_postgres::ConnectionOptions">ConnectionOptions</a></h3></section><section id="impl-UnwindSafe-for-ConnectionOptions" class="impl has-srclink"><a href="#impl-UnwindSafe-for-ConnectionOptions" class="anchor"></a><h3 class="code-header in-band">impl !<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="enum" href="enum.ConnectionOptions.html" title="enum db_sqlx_postgres::ConnectionOptions">ConnectionOptions</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-ConnectionOptions" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#203">source</a></span><a href="#impl-Any-for-ConnectionOptions" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-ConnectionOptions" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#209">source</a></span><a href="#impl-Borrow%3CT%3E-for-ConnectionOptions" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>