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