# 使用 Homebrew, MacPorts, Nix, scoop 安装 lazysql

查看 lazysql 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:lazysql
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lazysql
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lazysql
```

  证据: MacPorts ports tree: databases/lazysql/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#lazysql
```

  证据: nixpkgs package indexes: pkgs/by-name/la/lazysql/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install extras/lazysql
```

  证据: Scoop official bucket manifest trees: bucket/lazysql.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:lazysql
- **软件包管理器:** Homebrew
- **版本:** 0.5.5
- **来源摘要:** Cross-platform TUI database management tool
- **主页:** <https://github.com/jorgerojas26/lazysql>
- **仓库:** <https://github.com/jorgerojas26/lazysql>
- **最后更新:** 2026-07-26T13:40:59+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lazysql (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.5.5
## 项目历史与用法

lazysql is a cross-platform Go TUI for managing SQL database connections from the terminal.

### 项目历史

The GitHub repository was created on 2023-05-29. The README says the author wanted a LazyGit-like interface for SQL, did not find one that fit his needs, and built lazysql as a first open source and first Go project.

### 采用历史

The README documents installation through Homebrew, Go, GitHub binary releases, and Arch AUR packaging. GitHub metadata reported 4,033 stars by 2026-06-29.

### 使用方式

lazysql stores connection definitions in TOML config files and supports project-local `.lazysql.toml` overrides. Its README shows Postgres connection examples, read-only connection mode, an SQL editor, tabs, Vim keybindings, and multiple database connections.

### 为什么软件包爱好者会关心

lazysql is part of the wave of Go terminal applications that translate GUI database workflows into package-manager-friendly single binaries, especially appealing to users who prefer staying inside a terminal.

### 时间线

- 2023-05-29: GitHub repository created.
- 2026-05-25: Release v0.5.1 published.
- 2026-06-29: Release v0.5.5 published.

### Related projects

- The README names LazyGit as the main inspiration and documents Go and tview as implementation technologies.

### 来源

- <https://api.github.com/repos/jorgerojas26/lazysql>
- <https://github.com/jorgerojas26/lazysql>
- <https://github.com/jorgerojas26/lazysql/releases>


## 安全说明

没有找到 lazysql 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



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

- Linux: ~/.config/lazysql/config.toml, $XDG_CONFIG_HOME/lazysql/config.toml, .lazysql.toml in a project directory
- macOS: ~/Library/Application Support/lazysql/config.toml, $XDG_CONFIG_HOME/lazysql/config.toml, .lazysql.toml in a project directory
- Windows: %APPDATA%\lazysql\config.toml, .lazysql.toml in a project directory

## Credential files

- Linux: ~/.config/lazysql/config.toml, $XDG_CONFIG_HOME/lazysql/config.toml, .lazysql.toml in a project directory
- macOS: ~/Library/Application Support/lazysql/config.toml, $XDG_CONFIG_HOME/lazysql/config.toml, .lazysql.toml in a project directory
- Windows: %APPDATA%\lazysql\config.toml, .lazysql.toml in a project directory
## 其他软件包管理器记录

- Nix - lazysql: normalized package name match | nixpkgs package indexes: pkgs/by-name/la/lazysql/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - lazysql: normalized package name match | MacPorts ports tree: databases/lazysql/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/lazysql: normalized package name match | Scoop official bucket manifest trees: bucket/lazysql.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- 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
