<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>sql on Blogs by Prashant B.</title>
    <link>https://prashantb.dev/tags/sql/</link>
    <description>Recent content in sql on Blogs by Prashant B.</description>
    <image>
      <title>Blogs by Prashant B.</title>
      <url>https://pixabay.com/get/g61a93d93efd9be3f89af90a3a3ab09f5038e2fc845bfef9652e193a7f23b33417194e775640fe162bc43a33a0b3e36b5e6745f714d647cb155079bc5f89883e9ef93b7db818730f01c5b6a29ebb77cd9_640.png</url>
      <link>https://pixabay.com/get/g61a93d93efd9be3f89af90a3a3ab09f5038e2fc845bfef9652e193a7f23b33417194e775640fe162bc43a33a0b3e36b5e6745f714d647cb155079bc5f89883e9ef93b7db818730f01c5b6a29ebb77cd9_640.png</link>
    </image>
    <generator>Hugo -- 0.118.2</generator>
    <language>en</language>
    <lastBuildDate>Wed, 08 Apr 2026 00:00:00 +0530</lastBuildDate>
    <atom:link href="https://prashantb.dev/tags/sql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>sqlc: Write SQL, Skip the Boilerplate</title>
      <link>https://prashantb.dev/posts/sqlc-type-safe-sql-go/</link>
      <pubDate>Wed, 08 Apr 2026 00:00:00 +0530</pubDate>
      <guid>https://prashantb.dev/posts/sqlc-type-safe-sql-go/</guid>
      <description>AI coding assistants are great at generating boilerplate. But for database code in Go, there is a better option: one that generates it from your SQL itself, with zero hallucination risk. It is called sqlc .
What sqlc does You give it your SQL query files and your schema. It generates type-safe Go functions. Setup is a single config file:
# sqlc.yaml sql: - engine: &amp;#34;postgresql&amp;#34; queries: &amp;#34;db/queries&amp;#34; schema: &amp;#34;db/models&amp;#34; gen: go: package: &amp;#34;repo&amp;#34; sql_package: &amp;#34;pgx/v5&amp;#34; out: &amp;#34;db/repo&amp;#34; Point it at your queries, point it at your schema, run sqlc generate.</description>
    </item>
  </channel>
</rss>
