<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Design on vrajat</title><link>https://vrajat.com/tags/design/</link><description>Recent content in Design on vrajat</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sun, 15 Mar 2026 12:00:00 +0530</lastBuildDate><atom:link href="https://vrajat.com/tags/design/index.xml" rel="self" type="application/rss+xml"/><item><title>Understanding Rust Associated Types</title><link>https://vrajat.com/posts/rust-associated-types/</link><pubDate>Sun, 15 Mar 2026 12:00:00 +0530</pubDate><guid>https://vrajat.com/posts/rust-associated-types/</guid><description>&lt;p>&lt;a href="https://github.com/vrajat/pgqrs">pgqrs&lt;/a> supports multiple databases including PostgreSQL and SQLite.&lt;/p>
&lt;p>An application uses &lt;code>pgqrs&lt;/code> with a specific database that is chosen as a feature.&lt;/p>
&lt;pre tabindex="0">&lt;code>[dependencies]
# PostgreSQL only (default)
pgqrs = &amp;#34;0.15.2&amp;#34;

# SQLite only
pgqrs = { version = &amp;#34;0.15.1&amp;#34;, default-features = false, features = [&amp;#34;sqlite&amp;#34;] }
&lt;/code>&lt;/pre>&lt;p>The choice of database determines:&lt;/p>
&lt;ul>
&lt;li>dialect&lt;/li>
&lt;li>client library&lt;/li>
&lt;li>specific functions such as handling timestamps.&lt;/li>
&lt;/ul>
&lt;p>The important detail is that these differences are not chosen per method call.
Once the backend is selected, the dialect and timestamp handling are fixed.&lt;/p></description></item></channel></rss>