# Installer sqlc avec Homebrew, MacPorts, Nix, pacman, scoop

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de sqlc pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install sqlc
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install sqlc
```

  Preuve: 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
```

  Preuve: 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
```

  Preuve: 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
```

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

## Faits du paquet

- **Clé du paquet:** brew:sqlc
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/sqlc>
- **Version:** 1.31.1
- **Résumé source:** Generate type safe Go from SQL
- **Page d'accueil:** <https://sqlc.dev/>
- **Dépôt:** <https://github.com/sqlc-dev/sqlc>
- **Docs amont:** <https://sqlc.dev/>
- **Licence:** MIT
- **Archive source:** <https://github.com/sqlc-dev/sqlc/archive/refs/tags/v1.31.1.tar.gz>
- **Dernière mise à jour:** 2026-07-26T04:03:45+02:00
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- sqlc (cli)
- sqlc (alias)

## Dépendances de compilation

- go

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 1.31.1
- gestionnaire mis à jour: 2026-07-26
- données locales: OK
- dépôt amont: https://github.com/sqlc-dev/sqlc
- dernière version détectée: v1.31.1 (à jour)
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

- <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


## Notes de sécurité

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

- **Risque Geiger:** blue / moyen
- 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
## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** sqlc
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Autres enregistrements de gestionnaires de paquets

- 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


## Liens liés

- [Secret-risk packages](https://pkg.so/fr/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/fr/brew/go/) - Build dependency declared by Homebrew.
- [jet](https://pkg.so/fr/brew/jet/) - Shares pkgdb curated category or tags: cli, code-generation, database, developer-tools, go.
- [sqlboiler](https://pkg.so/fr/brew/sqlboiler/) - Shares pkgdb curated category or tags: cli, code-generation, database, developer-tools, go.
- [sqlcmd](https://pkg.so/fr/brew/sqlcmd/) - Shares pkgdb curated category or tags: cli, database, developer-tools, go.
- [protoc-gen-go](https://pkg.so/fr/brew/protoc-gen-go/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go.
- [golang-migrate](https://pkg.so/fr/brew/golang-migrate/) - Shares pkgdb curated category or tags: cli, database, developer-tools, go.
- [mockery](https://pkg.so/fr/brew/mockery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go.
- [snowflake-cli](https://pkg.so/fr/brew/snowflake-cli/) - Shares pkgdb curated category or tags: cli, database, developer-tools, sql.
- [protoc-gen-go-grpc](https://pkg.so/fr/brew/protoc-gen-go-grpc/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, go.
- [counterfeiter](https://pkg.so/fr/brew/counterfeiter/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

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


## Sources

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