Automic VaultAutomic Vault

brew

trdsql を Homebrew, MacPorts, Nix, scoop でインストール

trdsql のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install trdsql

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install trdsql

MacPorts ports tree · textproc/trdsql/Portfile · ソース: api.github.com

Linux

Nix確認済み · 92%
nix profile install nixpkgs#trdsql

nixpkgs package indexes · pkgs/by-name/tr/trdsql/package.nix · ソース: api.github.com

Windows

Scoop確認済み · 92%
scoop install main/trdsql

Scoop official bucket manifest trees · bucket/trdsql.json · ソース: api.github.com

概要

パッケージ概要

CLI tool that can execute SQL queries on CSV, LTSV, JSON, YAML and TBLN

履歴

プロジェクトの歴史と使われ方

trdsql is a Go command-line tool for executing SQL over tabular text and semi-structured files including CSV, LTSV, JSON, YAML, and TBLN. The official README positions it near tools such as `q` and `textql`, but emphasizes that trdsql can use PostgreSQL or MySQL syntax as well as SQLite.

プロジェクトの歴史

Noboru Saito developed trdsql as a practical bridge between shell data files and relational query engines. The official documentation explains its internal processing as option and SQL interpretation, importing file names from SQL commands into a database, executing SQL, and exporting the result in a requested output format.

The project evolved from a text-query utility into a broader data conversion and analysis tool. The README documents direct SQL queries, file conversion mode, multiple input formats, multiple output formats, NULL handling, query files, compressed input and output, table-name shortcuts, joins, and selectable SQLite, PostgreSQL, or MySQL engines.

The author's release-history pages show a maturing project. Version 0.13.0, posted November 12, 2023, introduced a shorter `-t` table-name syntax useful for simple format conversion and addressed macOS arm64 binary builds. Version 1.0.0, posted April 8, 2024, was marked stable by the author and followed improvements such as multiple SQL execution added in v0.20.0.

採用の歴史

trdsql's adoption comes from the command-line data niche: users who have CSV, JSON, YAML, logs, or mixed tabular files but want real SQL operations without first creating a database schema. The official README documents binary downloads for Linux, Windows, and macOS, Docker usage, Go source builds, Homebrew, MacPorts, and FreeBSD packages.

The batch input records broader package-manager coverage, including Homebrew, MacPorts, Nix, and Scoop. That package spread matches the tool's cross-platform promise: a single CLI for shell users who want SQL-shaped inspection and conversion across operating systems.

使われ方

In day-to-day use, trdsql runs SQL directly against files, reads from standard input, converts between formats with output flags, handles CSV headers and delimiters, parses JSON with jq expressions, and emits CSV, TSV, JSON, JSON Lines, LTSV, YAML, Markdown, ASCII tables, raw output, and other formats.

Its docs emphasize the tradeoff behind its power: trdsql imports data into an RDBMS before executing SQL, so it is not a streaming one-line-at-a-time filter. In exchange, users get real SQL semantics, joins, aggregation, window functions, configurable database engines, and format conversion in one package.

パッケージ好きにとっての重要性

For package nerds, trdsql sits in the same toolbox as `jq`, `xsv`, `mlr`, `q`, and `textql`, but it occupies the SQL-first corner. It is attractive when a user already thinks in SELECT, JOIN, GROUP BY, and database engine behavior but wants package-manager installation and shell-pipeline ergonomics.

The tool also shows the modern CLI packaging pattern: Go binary releases, Docker image, Homebrew and MacPorts formulas, Scoop availability, FreeBSD package notes, and source builds all coexist in the official installation docs.

タイムライン

  • 2023: v0.13.0 release notes document `-t` table-name shorthand, macOS arm64 binary fixes, and build-environment changes.
  • 2024: Official documentation site publishes trdsql overview, internals, configuration, SQL-engine, and format-conversion pages.
  • 2024: v1.0.0 release notes state that the author considered trdsql stable enough for a 1.0.0 release.

Related projects

  • The README explicitly compares trdsql with `q` and `textql`.
  • Related database engines include SQLite, PostgreSQL, and MySQL, which trdsql can use as execution backends.
  • Related shell data tools include `jq` for JSON selection and other table/file processors used in pipelines.

ソース

  • Batch input field: source_facts.package-manager
  • Official README: https://github.com/noborus/trdsql#readme
  • Official docs site: https://noborus.github.io/trdsql/
  • Official internals page: https://noborus.github.io/trdsql/11_summary/index.html
  • Official v0.13.0 release-history page: https://noborus.github.io/trdsql_history/trdsql_0130/index.html
  • Official v1.0.0 release-history page: https://noborus.github.io/trdsql_history/trdsql_1000/index.html

セキュリティ状態

保護ツール対応はまだ見つかっていません

trdsql に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。
  • ビルドメタデータには 1 件のビルド依存関係があります。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
trdsqlcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-08
マネージャ版1.2.3
マネージャ更新日2026-06-15
ローカルデータOK
上流最新
検出された最新v1.2.3

https://github.com/noborus/trdsql

  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:trdsql
バージョン1.2.3
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/trdsql
ホームページhttps://noborus.github.io/trdsql/
リポジトリhttps://github.com/noborus/trdsql
上流ドキュメントhttps://github.com/noborus/trdsql#readme
ライセンスMIT
ソースアーカイブhttps://github.com/noborus/trdsql/archive/refs/tags/v1.2.3.tar.gz
最終更新2026-06-15T10:21:22-04:00
Pulseupdated
ビルド依存関係go
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametrdsql
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Nix95%

trdsql

nix profile install nixpkgs#trdsql
  • normalized package name match
  • 一致条件: Trdsql
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/tr/trdsql/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
MacPorts95%

trdsql

sudo port install trdsql
  • normalized package name match
  • 一致条件: Trdsql
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/trdsql/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/trdsql

scoop install main/trdsql
  • normalized package name match
  • 一致条件: Trdsql
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/trdsql.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment