databases/sq: Add new port

sq is a command-line tool that provides jq-style access to structured
data sources including SQL databases and document formats. It supports
cross-source joins, multiple output formats, and unified querying across
various data sources.

WWW: https://sq.io/
This commit is contained in:
Jimmy Olgeni
2025-07-09 09:00:31 +02:00
parent f166c8bb1f
commit dede8a40cf
4 changed files with 44 additions and 0 deletions

View File

@@ -1076,6 +1076,7 @@
SUBDIR += spatialite-tools
SUBDIR += spatialite_gui
SUBDIR += speedtables
SUBDIR += sq
SUBDIR += sql-workbench
SUBDIR += sqlcached
SUBDIR += sqlcipher

22
databases/sq/Makefile Normal file
View File

@@ -0,0 +1,22 @@
PORTNAME= sq
DISTVERSIONPREFIX= v
DISTVERSION= 0.48.5
CATEGORIES= databases
MAINTAINER= olgeni@FreeBSD.org
COMMENT= CLI tool for querying multiple databases and data formats
WWW= https://sq.io/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= neilotoole
GO_MODULE= github.com/neilotoole/sq
PLIST_FILES= bin/sq
.include <bsd.port.mk>

7
databases/sq/distinfo Normal file
View File

@@ -0,0 +1,7 @@
TIMESTAMP = 1752020539
SHA256 (go/databases_sq/neilotoole-sq-v0.48.5_GH0/v0.48.5.mod) = 438cd2aa3b98e2401dfab7e002b37c6f9d3bb861cfe43a87ac9c77da97abfed3
SIZE (go/databases_sq/neilotoole-sq-v0.48.5_GH0/v0.48.5.mod) = 4051
SHA256 (go/databases_sq/neilotoole-sq-v0.48.5_GH0/v0.48.5.zip) = 1ba7cf722a5678b789dff9d6f22ffc47435b1c328c5dd7d91ef049ed6b66136f
SIZE (go/databases_sq/neilotoole-sq-v0.48.5_GH0/v0.48.5.zip) = 63203565
SHA256 (go/databases_sq/neilotoole-sq-v0.48.5_GH0/neilotoole-sq-v0.48.5_GH0.tar.gz) = 4ed9cef836e66174b6e01c8d410cd393aeae7f7069a428a7ab2adcd1e282cf68
SIZE (go/databases_sq/neilotoole-sq-v0.48.5_GH0/neilotoole-sq-v0.48.5_GH0.tar.gz) = 62450246

14
databases/sq/pkg-descr Normal file
View File

@@ -0,0 +1,14 @@
sq is a command-line tool that provides jq-style access to structured data
sources including SQL databases and document formats like CSV, Excel, and JSON.
Key features:
- Query multiple database types (PostgreSQL, MySQL, SQLite, SQL Server, etc.)
- Cross-source joins between different databases and file formats
- Multiple output formats (JSON, CSV, Excel, HTML, XML, Markdown)
- Database inspection and schema comparison
- SQL execution with syntax highlighting
- Data import/export between sources
sq simplifies working with structured data by providing a unified interface
for querying and transforming data across various sources.