# sqlc mit Homebrew, MacPorts, Nix, pacman, scoop installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für sqlc in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:sqlc
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install sqlc
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sqlc
```

  Evidenz: MacPorts ports tree: devel/sqlc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#sqlc
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/sq/sqlc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S sqlc
```

  Evidenz: Arch Linux sync databases: sqlc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/sqlc
```

  Evidenz: Scoop official bucket manifest trees: bucket/sqlc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Paketfakten

- **Paketschlüssel:** brew:sqlc
- **Paketmanager:** Homebrew
- **Version:** 1.31.1
- **Quellzusammenfassung:** Generate type safe Go from SQL
- **Homepage:** <https://sqlc.dev/>
- **Repository:** <https://github.com/sqlc-dev/sqlc>
- **Zuletzt aktualisiert:** 2026-07-26T04:03:45+02:00
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- sqlc (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 1.31.1
## Projektgeschichte und Nutzung

sqlc is a command-line SQL compiler that generates type-safe application code from handwritten SQL queries. It began in the Go ecosystem and later expanded its generator model beyond Go.

### Projektgeschichte

The sqlc repository was created in 2019. Its first public GitHub release, v0.1.0, appeared in January 2020, followed by v1.0.0 in February 2020.

The project documentation now describes a configuration-driven compiler with support for PostgreSQL, MySQL, and SQLite inputs, plus generator plugins for languages beyond the original Go target.

### Adoptionsgeschichte

sqlc found a niche among developers who wanted to keep SQL as the source of truth while avoiding hand-written row scanning and fragile stringly typed database code. The input package metadata lists Homebrew, MacPorts, Nix, Arch, and Scoop packaging, showing broad CLI distribution across Unix-like and Windows package-manager ecosystems.

### Wie es verwendet wird

A common workflow is to write schema and query SQL files, configure them in sqlc.yaml, sqlc.yml, or sqlc.json, and run sqlc to produce typed query methods used by application code.

### Warum Paket-Nerds sich dafür interessieren

Package nerds care about sqlc because it turns SQL into a build-time artifact. It fits neatly into reproducible developer environments, CI checks, and generated-code workflows without requiring a running ORM runtime.

### Zeitleiste

- 2019: GitHub repository created.
- 2020: v0.1.0 released.
- 2020: v1.0.0 released.
- Current docs: configuration centers on sqlc.(yaml|yml) or sqlc.json and supports plugins and multiple language targets.

### Related projects

- The SQLBoiler README lists sqlc as an alternative for users who want type-safe SQL-generated code without an ORM model. sqlc's own README lists sqlc-gen-go, sqlc-gen-kotlin, sqlc-gen-python, and sqlc-gen-typescript as supported language generator projects.

### Quellen

- <https://api.github.com/repos/sqlc-dev/sqlc>
- <https://api.github.com/repos/sqlc-dev/sqlc/releases>
- <https://docs.sqlc.dev/en/stable/reference/config.html>
- <https://github.com/sqlc-dev/sqlc#readme>
- input.source_facts.package-manager


## Sicherheitshinweise

broad file, network, media, or database tool signal.

- **Geiger-Risiko:** blue / mittel
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: sqlc.yaml, sqlc.yml, sqlc.json
## Andere Paketmanager-Einträge

- Nix - sqlc: normalized package name match | nixpkgs package indexes: pkgs/by-name/sq/sqlc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - sqlc - 1.31.1-1: normalized package name match | Arch Linux sync databases: sqlc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Compile SQL to type-safe Go | https://sqlc.dev
- MacPorts - sqlc: normalized package name match | MacPorts ports tree: devel/sqlc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/sqlc: normalized package name match | Scoop official bucket manifest trees: bucket/sqlc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/sqlc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/sqlc.yml)


## Quellen

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
