# 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
- **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>
- **Dernière mise à jour:** 2026-07-26T04:03:45+02:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- sqlc (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 1.31.1
## 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
## 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
