sqlc
« Back to VersTracker
Description:
Generate type safe Go from SQL
Type: Formula  |  Latest Version: 1.30.0@0  |  Tracked Since: Dec 27, 2025
Links: Homepage  |  @sqlc_dev  |  formulae.brew.sh
Category: Developer tools
Tags: sql code-generation go type-safety database
Install: brew install sqlc
About:
sqlc is a command-line tool that generates type-safe Go code from SQL queries. It parses SQL files and produces Go interfaces and structs that match your database schema, ensuring compile-time safety and reducing runtime errors. This approach eliminates the need for manual mapping and provides a more reliable way to interact with databases in Go applications.
Key Features:
  • Generates type-safe Go code from SQL
  • Supports PostgreSQL and MySQL
  • Compile-time query validation
  • Eliminates manual SQL result mapping
  • Integrates with existing Go tooling
Use Cases:
  • Building type-safe database layers in Go applications
  • Reducing SQL-related bugs and improving code maintainability
Alternatives:
  • sqlboiler – Full-featured ORM/query builder, whereas sqlc focuses on generating code from raw SQL files.
  • gorm – A popular ORM library that uses method chaining, while sqlc prioritizes type safety from raw SQL.
Version History
Detected Version Rev Change Commit
Dec 27, 2025 6:37pm 1.30.0 0 VERSION_BUMP 7814cee4
Sep 15, 2025 12:21pm 0 VERSION_BUMP 0b335260
Sep 10, 2024 11:30pm 0 VERSION_BUMP bbbcd66b
Aug 5, 2024 11:15pm 0 VERSION_BUMP cbff85bc
Jan 4, 2024 12:51am 0 VERSION_BUMP 51895963
Nov 22, 2023 6:54pm 0 VERSION_BUMP dfd2e020
Sep 26, 2023 11:22pm 0 VERSION_BUMP 36e673e6
Sep 25, 2023 1:45am 0 VERSION_BUMP ef925f72
Jul 31, 2023 6:50pm 0 VERSION_BUMP 27a07500