# 使用 Homebrew, dnf 安装 sql-translator

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

## 安装

```sh
sudo av install brew:sql-translator
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sql-translator
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install sqlt-graph
```

  证据: Fedora Rawhide package metadata: sqlt-graph from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:sql-translator
- **软件包管理器:** Homebrew
- **版本:** 1.66
- **来源摘要:** Manipulate structured data definitions (SQL and more)
- **主页:** <https://github.com/dbsrgits/sql-translator/>
- **最后更新:** 2026-05-26T02:26:19Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sqlt (别名)
- sqlt-diagram (别名)
- sqlt-diff (别名)
- sqlt-diff-old (别名)
- sqlt-dumper (别名)
- sqlt-graph (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

SQL::Translator, also known historically as SQLFairy, is a Perl distribution for translating structured data definitions. MetaCPAN describes it as converting vendor-specific SQL table definitions into other formats including other SQL dialects, diagrams, documentation, XML, and Class::DBI classes.

### 项目历史

The current GitHub repository was created in February 2011, while the module documentation and metadata preserve older CPAN-era identity and support channels. The distribution remains maintained on CPAN, with version 1.66 released in November 2024.

### 采用历史

SQL::Translator belongs to the CPAN tool culture where command-line scripts and Perl modules are distributed together. The Homebrew formula exposes several executables, including `sqlt`, `sqlt-diagram`, `sqlt-diff`, `sqlt-dumper`, and `sqlt-graph`, making the CPAN distribution available to users who prefer system package managers.

### 使用方式

Users commonly call the `sqlt` family of commands to translate, diff, diagram, or dump database schemas, or use the Perl API by constructing a translator with parser and producer options such as MySQL input and Oracle output. The module focuses on SQL definition language such as CREATE and ALTER rather than data manipulation.

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

Package nerds care about SQL::Translator because it is an old, cross-dialect schema plumbing tool with many optional outputs and executables. It is the kind of utility that appears in migration scripts, documentation generation, ORM-era workflows, and distro package sets because it bridges database dialects rather than belonging to one database vendor.

### 时间线

- 2011: Current GitHub repository created.
- 2015: Changelog documents fixes for SQLite, MySQL, PostgreSQL, SQL Server, and Oracle quoting and parsing.
- 2019: 1.60 released after the 1.59 development series.
- 2024: 1.66 released on CPAN.

### Related projects

- The official documentation names Parse::RecDescent, GD, GraphViz, Text::RecordParser, Class::DBI, and XML::Writer as related technologies. The module also includes parser and producer namespaces for multiple database dialects and output formats.

### 来源

- <https://fastapi.metacpan.org/v1/module/SQL::Translator>
- <https://fastapi.metacpan.org/v1/release/SQL-Translator>
- <https://github.com/dbsrgits/sql-translator/blob/master/Changes>
- <https://metacpan.org/pod/SQL::Translator>
- source_facts.executables


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- dnf - sqlt-graph - 1.66-5.fc45: installed executable or alias match | Fedora Rawhide package metadata: sqlt-graph from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | sqlt-graph tool to create a graph from a database schema | https://metacpan.org/release/SQL-Translator


## Combined YAML source

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


## 来源

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